From: Kevin Hock Date: Wed, 29 Sep 2004 00:14:29 +0000 (+0000) Subject: Send EVT_COMMAND_TEXT_UPDATED from the spin control when the text in a spin control... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5b884f4c74dc5257afcac0c14d2b6ca712ed807a Send EVT_COMMAND_TEXT_UPDATED from the spin control when the text in a spin control is updated by typing git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/spinctrl.cpp b/src/mac/carbon/spinctrl.cpp index 2a2b77c91d..5db84619e4 100644 --- a/src/mac/carbon/spinctrl.cpp +++ b/src/mac/carbon/spinctrl.cpp @@ -54,6 +54,13 @@ protected: if ( m_spin->GetTextValue(&val) ) { m_spin->GetSpinButton()->SetValue(val); + + // Send event that the text was manually changed + wxCommandEvent event(wxEVT_COMMAND_TEXT_UPDATED, m_spin->GetId()); + event.SetEventObject(m_spin); + event.SetInt(val); + + m_spin->GetEventHandler()->ProcessEvent(event); } event.Skip();