Honous initial position for wxSpinCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -157,7 +157,7 @@ void wxSpinCtrl::Init()
|
|||||||
bool wxSpinCtrl::Create(wxWindow *parent,
|
bool wxSpinCtrl::Create(wxWindow *parent,
|
||||||
wxWindowID id,
|
wxWindowID id,
|
||||||
const wxString& value,
|
const wxString& value,
|
||||||
const wxPoint& WXUNUSED(pos),
|
const wxPoint& pos,
|
||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
long style,
|
long style,
|
||||||
int min,
|
int min,
|
||||||
@@ -188,6 +188,7 @@ bool wxSpinCtrl::Create(wxWindow *parent,
|
|||||||
m_btn->SetRange(min, max);
|
m_btn->SetRange(min, max);
|
||||||
m_btn->SetValue(initial);
|
m_btn->SetValue(initial);
|
||||||
SetBestSize(size);
|
SetBestSize(size);
|
||||||
|
Move(pos);
|
||||||
|
|
||||||
// have to disable this window to avoid interfering it with message
|
// have to disable this window to avoid interfering it with message
|
||||||
// processing to the text and the button... but pretend it is enabled to
|
// processing to the text and the button... but pretend it is enabled to
|
||||||
|
Reference in New Issue
Block a user