X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d88de032d3009be88d0f0ba4a882784aa9493331..bd73ba41f93a040ecf9c18040d7f788992d0a6ec:/include/wx/os2/button.h?ds=sidebyside diff --git a/include/wx/os2/button.h b/include/wx/os2/button.h index 802f1c3623..5330bcfb8f 100644 --- a/include/wx/os2/button.h +++ b/include/wx/os2/button.h @@ -17,15 +17,16 @@ WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr; // Pushbutton -class WXDLLEXPORT wxButton: public wxControl +class WXDLLEXPORT wxButton: public wxButtonBase { - DECLARE_DYNAMIC_CLASS(wxButton) public: inline wxButton() {} 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 +35,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 +58,9 @@ protected: // send a notification event, return TRUE if processed bool SendClickEvent(); - virtual wxSize DoGetBestSize(); + virtual wxSize DoGetBestSize() const; +private: + DECLARE_DYNAMIC_CLASS(wxButton) }; #endif