X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d90895ac118ad4546eed7ee4c358a3fe644a1ad7..2e907fab47d506f5c8096b4a7675d9bd4216320e:/include/wx/os2/textctrl.h diff --git a/include/wx/os2/textctrl.h b/include/wx/os2/textctrl.h index 7bf7bdb077..7f819fe260 100644 --- a/include/wx/os2/textctrl.h +++ b/include/wx/os2/textctrl.h @@ -24,7 +24,9 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, +#if wxUSE_VALIDATORS const wxValidator& validator = wxDefaultValidator, +#endif const wxString& name = wxTextCtrlNameStr) { Create(parent, id, value, pos, size, style, validator, name); @@ -35,7 +37,9 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, +#if wxUSE_VALIDATORS const wxValidator& validator = wxDefaultValidator, +#endif const wxString& name = wxTextCtrlNameStr); // implement base class pure virtuals @@ -142,7 +146,7 @@ protected: // limit is big enough) void AdjustSpaceLimit(); - virtual wxSize DoGetBestSize(); + virtual wxSize DoGetBestSize() const; private: DECLARE_EVENT_TABLE()