// 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"
bool wxSpinCtrl::Create(wxWindow *parent,
wxWindowID id,
const wxString& value,
- const wxPoint& WXUNUSED(pos),
+ const wxPoint& pos,
const wxSize& size,
long style,
int min,
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