X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d88de032d3009be88d0f0ba4a882784aa9493331..b99be8fb783c506bd71f6ae156a1f2fba0303037:/include/wx/os2/button.h diff --git a/include/wx/os2/button.h b/include/wx/os2/button.h index 802f1c3623..ed2c8a8f40 100644 --- a/include/wx/os2/button.h +++ b/include/wx/os2/button.h @@ -25,7 +25,9 @@ class WXDLLEXPORT wxButton: public wxControl inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, +#if wxUSE_VALIDATORS const wxValidator& validator = wxDefaultValidator, +#endif const wxString& name = wxButtonNameStr) { Create(parent, id, label, pos, size, style, validator, name); @@ -34,7 +36,9 @@ class WXDLLEXPORT wxButton: public wxControl bool Create(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, +#if wxUSE_VALIDATORS const wxValidator& validator = wxDefaultValidator, +#endif const wxString& name = wxButtonNameStr); virtual ~wxButton(); @@ -55,7 +59,7 @@ protected: // send a notification event, return TRUE if processed bool SendClickEvent(); - virtual wxSize DoGetBestSize(); + virtual wxSize DoGetBestSize() const; }; #endif