]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/spinctlg.cpp
renamed wxLogXXX functions with va_list argument to wxVLogXXX
[wxWidgets.git] / src / generic / spinctlg.cpp
index 3488d1f07471de39fa2d982add6104f176461345..ff767d2848d3b917de3543e5b700420eb24390f1 100644 (file)
@@ -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());
 
-        event.Skip();
+      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(eventSpin.GetPosition());
+        eventSpin.Skip();
+#endif
     }
 
 private: