]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/spinctlg.cpp
Take basic style into account when showing style under cursor
[wxWidgets.git] / src / generic / spinctlg.cpp
index 066e66f381b6a39c790df4d92dabe4cd1ff970c1..88de174cfd1cbce078abe74707d9255c062756b9 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma implementation "spinctlg.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -157,7 +153,7 @@ void wxSpinCtrl::Init()
 bool wxSpinCtrl::Create(wxWindow *parent,
                         wxWindowID id,
                         const wxString& value,
-                        const wxPoint& WXUNUSED(pos),
+                        const wxPoint& pos,
                         const wxSize& size,
                         long style,
                         int min,
@@ -187,7 +183,8 @@ bool wxSpinCtrl::Create(wxWindow *parent,
 
     m_btn->SetRange(min, max);
     m_btn->SetValue(initial);
-    SetBestSize(size);
+    SetInitialSize(size);
+    Move(pos);
 
     // have to disable this window to avoid interfering it with message
     // processing to the text and the button... but pretend it is enabled to