X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/954fc50b6edca29cfc1b042c1227c91023580131..dbcbe229628c7667da2b6257198467d4f09ab28d:/src/generic/spinctlg.cpp?ds=sidebyside diff --git a/src/generic/spinctlg.cpp b/src/generic/spinctlg.cpp index 9d6ab516e2..cea2e0b054 100644 --- a/src/generic/spinctlg.cpp +++ b/src/generic/spinctlg.cpp @@ -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;