generate spinctrl event when the button was clicked (slightly modified patch 648013)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -109,7 +109,6 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
void OnSpinButton(wxSpinEvent& eventSpin)
|
void OnSpinButton(wxSpinEvent& eventSpin)
|
||||||
{
|
{
|
||||||
#if defined(__WXMAC__) || defined(__WXMOTIF__)
|
|
||||||
m_spin->SetTextValue(eventSpin.GetPosition());
|
m_spin->SetTextValue(eventSpin.GetPosition());
|
||||||
|
|
||||||
wxCommandEvent event(wxEVT_COMMAND_SPINCTRL_UPDATED, m_spin->GetId());
|
wxCommandEvent event(wxEVT_COMMAND_SPINCTRL_UPDATED, m_spin->GetId());
|
||||||
@@ -117,10 +116,8 @@ protected:
|
|||||||
event.SetInt(eventSpin.GetPosition());
|
event.SetInt(eventSpin.GetPosition());
|
||||||
|
|
||||||
m_spin->GetEventHandler()->ProcessEvent(event);
|
m_spin->GetEventHandler()->ProcessEvent(event);
|
||||||
#else
|
|
||||||
m_spin->SetTextValue(eventSpin.GetPosition());
|
|
||||||
eventSpin.Skip();
|
eventSpin.Skip();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Reference in New Issue
Block a user