X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1169a91932273bc84c23ed9dbd0a2da064d59d66..e27c99c7504d9168ee0ddd6043f942fd230027bc:/include/wx/univ/button.h?ds=sidebyside diff --git a/include/wx/univ/button.h b/include/wx/univ/button.h index fcc95e74b6..e6bb4f0355 100644 --- a/include/wx/univ/button.h +++ b/include/wx/univ/button.h @@ -36,7 +36,7 @@ class WXDLLEXPORT wxInputHandler; class WXDLLEXPORT wxButton : public wxButtonBase { public: - wxButton(); + wxButton() { Init(); } wxButton(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap, @@ -45,7 +45,12 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, - const wxString& name = wxButtonNameStr); + const wxString& name = wxButtonNameStr) + { + Init(); + + Create(parent, id, bitmap, label, pos, size, style, validator, name); + } wxButton(wxWindow *parent, wxWindowID id, @@ -54,7 +59,12 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, - const wxString& name = wxButtonNameStr); + const wxString& name = wxButtonNameStr) + { + Init(); + + Create(parent, id, label, pos, size, style, validator, name); + } bool Create(wxWindow *parent, wxWindowID id,