]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/univ/button.h
Wrappers for *ToText
[wxWidgets.git] / include / wx / univ / button.h
index fcc95e74b6a7c47f12f3cc556204ad1b3218f130..e6bb4f0355ac582c581c476a5f52da9921838732 100644 (file)
@@ -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,