X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3fb7939695d0e2dae71188fcce4eeeb2b68c81da..61f824b8198b6c916adc25f58640a22c9d523bf0:/src/generic/spinctlg.cpp?ds=sidebyside diff --git a/src/generic/spinctlg.cpp b/src/generic/spinctlg.cpp index 24152c771d..066e66f381 100644 --- a/src/generic/spinctlg.cpp +++ b/src/generic/spinctlg.cpp @@ -60,9 +60,9 @@ 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); + SetSizeHints(wxDefaultCoord,wxDefaultCoord); } protected: @@ -111,7 +111,7 @@ public: SetWindowStyle(style | wxSP_VERTICAL); // remove the default minsize, the spinctrl will have one instead - SetSizeHints(wxDefaultSize.x,wxDefaultSize.y); + SetSizeHints(wxDefaultCoord,wxDefaultCoord); } protected: @@ -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 @@ -234,7 +234,7 @@ void wxSpinCtrl::DoMoveWindow(int x, int y, int width, int height) wxCoord wText = width - sizeBtn.x; m_text->SetSize(x, y, wText, height); - m_btn->SetSize(x + wText + MARGIN, y, wxDefaultSize.x, height); + m_btn->SetSize(x + wText + MARGIN, y, wxDefaultCoord, height); } // ----------------------------------------------------------------------------