]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/spinctrl.cpp
Include missing.h to find O_* flags.
[wxWidgets.git] / 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();