]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/spinctlg.cpp
Added wxPGProperty::Enable() for conveniency. Refactored related code and improved...
[wxWidgets.git] / src / generic / spinctlg.cpp
index d872780e9c59fe8e29b3235f40a01ce29f4c27b9..d3c1cdb4a6d2d82dc25832b54dfc36ca3f266a9d 100644 (file)
@@ -279,6 +279,12 @@ void wxSpinCtrlGenericBase::DoMoveWindow(int x, int y, int width, int height)
 // operations forwarded to the subcontrols
 // ----------------------------------------------------------------------------
 
+void wxSpinCtrlGenericBase::SetFocus()
+{
+    if ( m_textCtrl )
+        m_textCtrl->SetFocus();
+}
+
 bool wxSpinCtrlGenericBase::Enable(bool enable)
 {
     // Notice that we never enable this control itself, it must stay disabled