]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/spinctrl.cpp
respect styles during creation as well
[wxWidgets.git] / src / mac / carbon / spinctrl.cpp
index 6e68e343163d8ac7f66f9cf149b51846c1e1072e..40e5211fbd68109a77bd4a5dcce458e7c7fdf24c 100644 (file)
@@ -12,7 +12,7 @@
 #pragma implementation "spinctrl.h"
 #endif
 
-#include "wx/defs.h"
+#include "wx/wxprec.h"
 
 #if wxUSE_SPINCTRL
 
@@ -267,6 +267,13 @@ bool wxSpinCtrl::Show(bool show)
     return TRUE;
 }
 
+void wxSpinCtrl::SetFocus()
+{
+    if ( m_text != NULL) {
+        m_text->SetFocus();
+    }
+}
+
 // ----------------------------------------------------------------------------
 // value and range access
 // ----------------------------------------------------------------------------