]> git.saurik.com Git - wxWidgets.git/commitdiff
Send EVT_COMMAND_TEXT_UPDATED from the spin control when the text in a spin control...
authorKevin Hock <hockkn@yahoo.com>
Wed, 29 Sep 2004 00:14:29 +0000 (00:14 +0000)
committerKevin Hock <hockkn@yahoo.com>
Wed, 29 Sep 2004 00:14:29 +0000 (00:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/spinctrl.cpp

index 2a2b77c91d5e119a4ecffeb17776277145ab8d52..5db84619e482da1127249b68eb54778b798840a1 100644 (file)
@@ -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();