]> git.saurik.com Git - wxWidgets.git/commitdiff
Tried to make button events interceptable in generic wxSpinCtrl. No luck.
authorRobert Roebling <robert@roebling.de>
Mon, 16 Jul 2001 07:58:15 +0000 (07:58 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 16 Jul 2001 07:58:15 +0000 (07:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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;