From 63efc55ff74b1b9b9d20497a0741bf84593df986 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 9 Dec 2001 07:41:10 +0000 Subject: [PATCH] added changes in order to make at least button events work on mac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/spinctlg.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/generic/spinctlg.cpp b/src/generic/spinctlg.cpp index 3488d1f074..f61ac2c516 100644 --- a/src/generic/spinctlg.cpp +++ b/src/generic/spinctlg.cpp @@ -107,11 +107,20 @@ public: } protected: - void OnSpinButton(wxSpinEvent& event) + void OnSpinButton(wxSpinEvent& eventSpin) { - m_spin->SetTextValue(event.GetPosition()); +#ifdef __WXMAC__ + m_spin->SetTextValue(eventSpin.GetPosition()); + + wxCommandEvent event(wxEVT_COMMAND_SPINCTRL_UPDATED, m_spin->GetId()); + event.SetEventObject(m_spin); + event.SetInt(eventSpin.GetPosition()); + m_spin->GetEventHandler()->ProcessEvent(event); +#else + m_spin->SetTextValue(event.GetPosition()); event.Skip(); +#endif } private: -- 2.50.0