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:
@@ -69,6 +69,15 @@ protected:
|
|||||||
|
|
||||||
event.Skip();
|
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:
|
private:
|
||||||
wxSpinCtrl *m_spin;
|
wxSpinCtrl *m_spin;
|
||||||
|
Reference in New Issue
Block a user