]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/spinctlg.cpp
ignore WinCE projects and build directories
[wxWidgets.git] / src / generic / spinctlg.cpp
index 409b708a0e16f40eef88eb4e9b4387d25f079cb6..9103305144532e383d7b4b0a804c476b1a56886f 100644 (file)
@@ -183,7 +183,7 @@ bool wxSpinCtrl::Create(wxWindow *parent,
 
     m_btn->SetRange(min, max);
     m_btn->SetValue(initial);
-    SetBestSize(size);
+    SetInitialSize(size);
     Move(pos);
 
     // have to disable this window to avoid interfering it with message
@@ -265,6 +265,17 @@ bool wxSpinCtrl::Show(bool show)
     return true;
 }
 
+bool wxSpinCtrl::Reparent(wxWindow *newParent)
+{
+    if ( m_btn )
+    {
+        m_btn->Reparent(newParent);
+        m_text->Reparent(newParent);
+    }
+
+    return true;
+}
+
 // ----------------------------------------------------------------------------
 // value and range access
 // ----------------------------------------------------------------------------