]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/spinctlg.cpp
Support for new native OS/2 tree control with drag-and-drop.
[wxWidgets.git] / src / generic / spinctlg.cpp
index eb52e041a22763019f76c8390cb88ee60dc00fd8..cb7449b3d2c251ac32e1c6008715016543fd1553 100644 (file)
@@ -109,18 +109,15 @@ public:
 protected:
     void OnSpinButton(wxSpinEvent& eventSpin)
     {
-#if defined(__WXMAC__) || defined(__WXMOTIF__)
-      m_spin->SetTextValue(eventSpin.GetPosition());
+        m_spin->SetTextValue(eventSpin.GetPosition());
 
-      wxCommandEvent event(wxEVT_COMMAND_SPINCTRL_UPDATED, m_spin->GetId());
-      event.SetEventObject(m_spin);
-      event.SetInt(eventSpin.GetPosition());
+        wxCommandEvent event(wxEVT_COMMAND_SPINCTRL_UPDATED, m_spin->GetId());
+        event.SetEventObject(m_spin);
+        event.SetInt(eventSpin.GetPosition());
+
+        m_spin->GetEventHandler()->ProcessEvent(event);
 
-      m_spin->GetEventHandler()->ProcessEvent(event);
-#else
-        m_spin->SetTextValue(eventSpin.GetPosition());
         eventSpin.Skip();
-#endif
     }
 
 private: