Tried to make button events interceptable in generic wxSpinCtrl. No luck.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2001-07-16 07:58:15 +00:00
parent 0d9e47578e
commit 23d416bfc4

View 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;