]> git.saurik.com Git - wxWidgets.git/commitdiff
SetFocus fixed
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 31 Dec 2004 13:29:35 +0000 (13:29 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 31 Dec 2004 13:29:35 +0000 (13:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/mac/carbon/spinctrl.h
src/mac/carbon/spinctrl.cpp

index 9ffd5d1ee22b00c7df4f92174f3c97a3c90c7887..e29c806d7273a8fd4a271f6940cc1d54d0c3ca3f 100755 (executable)
@@ -80,6 +80,7 @@ public:
     // forward these functions to all subcontrols
     virtual bool Enable(bool enable = TRUE);
     virtual bool Show(bool show = TRUE);
     // forward these functions to all subcontrols
     virtual bool Enable(bool enable = TRUE);
     virtual bool Show(bool show = TRUE);
+    virtual void SetFocus();
 
     // get the subcontrols
     wxTextCtrl *GetText() const { return m_text; }
 
     // get the subcontrols
     wxTextCtrl *GetText() const { return m_text; }
index 6e68e343163d8ac7f66f9cf149b51846c1e1072e..e1c2f58cbe8d59328394effe3e262e48b706153a 100644 (file)
@@ -267,6 +267,13 @@ bool wxSpinCtrl::Show(bool show)
     return TRUE;
 }
 
     return TRUE;
 }
 
+void wxSpinCtrl::SetFocus()
+{
+    if ( m_text != NULL) {
+        m_text->SetFocus();
+    }
+}
+
 // ----------------------------------------------------------------------------
 // value and range access
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 // value and range access
 // ----------------------------------------------------------------------------