]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/spinctlg.h
Added tooltips to radiobox (untested).
[wxWidgets.git] / include / wx / generic / spinctlg.h
index 288758c6f0363fec677cdfc669faf97c90013034..f9f01943ce2df609e756b5a817710f478f9e38a2 100644 (file)
@@ -44,11 +44,13 @@ public:
                 int min = 0, int max = 100, int initial = 0,
                 const wxString& name = _T("wxSpinCtrl"))
     {
-        SetValue(initial);
         SetRange(min, max);
 
-        return wxTextCtrl::Create(parent, id, value, pos, size, style,
-                                  wxDefaultValidator, name);
+        bool ok = wxTextCtrl::Create(parent, id, value, pos, size, style,
+                                     wxDefaultValidator, name);
+        SetValue(initial);
+
+        return ok;
     }
 
     // accessors