Code cleaning: wxID_ANY, wxDefaultSize, wxDefaultPosition, true, false, wxEmptyString, tabs and white spaces.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -60,7 +60,7 @@ public:
|
||||
: wxTextCtrl(spin->GetParent(), wxID_ANY, value)
|
||||
{
|
||||
m_spin = spin;
|
||||
|
||||
|
||||
// remove the default minsize, the spinctrl will have one instead
|
||||
SetSizeHints(wxDefaultSize.x,wxDefaultSize.y);
|
||||
}
|
||||
@@ -184,11 +184,11 @@ bool wxSpinCtrl::Create(wxWindow *parent,
|
||||
|
||||
m_text = new wxSpinCtrlText(this, value);
|
||||
m_btn = new wxSpinCtrlButton(this, style);
|
||||
|
||||
|
||||
m_btn->SetRange(min, max);
|
||||
m_btn->SetValue(initial);
|
||||
SetBestSize(size);
|
||||
|
||||
|
||||
// have to disable this window to avoid interfering it with message
|
||||
// processing to the text and the button... but pretend it is enabled to
|
||||
// make IsEnabled() return true
|
||||
|
Reference in New Issue
Block a user