]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/spinbutt.cpp
made wxFFile a bit more safe: don't crash when Tell() and Length() are called on...
[wxWidgets.git] / src / mac / spinbutt.cpp
index 0f4faca5784170109e30e0efccc211e515a43ff0..f8dcca8bd9ad8ab8c3e5a42cb6df012b01bbdd30 100644 (file)
@@ -38,6 +38,10 @@ wxSpinButton::wxSpinButton()
 bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
         long style, const wxString& name)
 {
+    if ( !wxSpinButtonBase::Create(parent, id, pos, size,
+                                   style, wxDefaultValidator, name) )
+        return false;
+
     m_min = 0;
     m_max = 100;
     
@@ -147,7 +151,7 @@ void wxSpinButton::MacHandleValueChanged( int inc )
     }
 }
 
-void wxSpinButton::MacHandleControlClick( WXWidget control , wxInt16 controlpart ) 
+void wxSpinButton::MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool WXUNUSED(mouseStillDown)
 {
     if ( (ControlHandle) m_macControl == NULL )
         return ;