]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/spinctlg.cpp
added wx/defs.h include to correct compilation issues under Mac OS X
[wxWidgets.git] / src / generic / spinctlg.cpp
index 9d6ab516e258461b8af7842cafee52d0b54e9071..cea2e0b054f5b7f61b700be7385e6f62b0e019d6 100644 (file)
@@ -69,6 +69,15 @@ protected:
 
         event.Skip();
     }
+    
+    bool ProcessEvent(wxEvent &event)
+    {
+        // Hand button down events to wxSpinCtrl. Doesn't work.
+        if (event.GetEventType() == wxEVT_LEFT_DOWN && m_spin->ProcessEvent( event ))
+            return TRUE;
+            
+        return wxTextCtrl::ProcessEvent( event );
+    }
 
 private:
     wxSpinCtrl *m_spin;