]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/radiobut.h
Peparation for native Smartphone controls based on Spinners.
[wxWidgets.git] / include / wx / msw / radiobut.h
index 9eb4c81e9037fb3b9f50e59d421f637795c03276..da92a8e18fdd2f1ae4ed73989320950e918994c0 100644 (file)
@@ -20,7 +20,7 @@ class WXDLLEXPORT wxRadioButton: public wxControl
 {
 public:
     // ctors and creation functions
-    wxRadioButton();
+    wxRadioButton() { Init(); }
 
     wxRadioButton(wxWindow *parent,
                   wxWindowID id,
@@ -29,7 +29,12 @@ public:
                   const wxSize& size = wxDefaultSize,
                   long style = 0,
                   const wxValidator& validator = wxDefaultValidator,
-                  const wxString& name = wxRadioButtonNameStr);
+                  const wxString& name = wxRadioButtonNameStr)
+    {
+        Init();
+
+        Create(parent, id, label, pos, size, style, validator, name);
+    }
 
     bool Create(wxWindow *parent,
                 wxWindowID id,
@@ -47,6 +52,9 @@ public:
     // implementation only from now on
     virtual bool MSWCommand(WXUINT param, WXWORD id);
     virtual void Command(wxCommandEvent& event);
+    virtual void ApplyParentThemeBackground(const wxColour& bg)
+        { SetBackgroundColour(bg); }
+
 
 protected:
     virtual wxSize DoGetBestSize() const;