X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3379ed3789e405f874d9db757d95346f1d378795..dcf0fce44b34522ee1d3bef16a42b36cfd3c4bde:/src/generic/spinctlg.cpp diff --git a/src/generic/spinctlg.cpp b/src/generic/spinctlg.cpp index 44d209b5b9..5c02451b72 100644 --- a/src/generic/spinctlg.cpp +++ b/src/generic/spinctlg.cpp @@ -28,7 +28,7 @@ #pragma hdrstop #endif -#if !(defined(__WXMSW__) || defined(__WXGTK__) || defined(__WXPM__)) || \ +#if !(defined(__WXMSW__) || defined(__WXGTK__) || defined(__WXPM__)) || defined(__WXMAC__) || \ defined(__WXUNIVERSAL__) #ifndef WX_PRECOMP @@ -147,7 +147,6 @@ bool wxSpinCtrl::Create(wxWindow *parent, } SetBackgroundColour(*wxRED); - m_text = new wxSpinCtrlText(this, value); m_btn = new wxSpinCtrlButton(this, style); @@ -155,7 +154,9 @@ bool wxSpinCtrl::Create(wxWindow *parent, m_btn->SetValue(initial); DoSetSize(pos.x, pos.y, size.x, size.y); - +#ifdef __WXMAC__ + DoMoveWindow( pos.x, pos.y, size.x, size.y ) ; +#endif // 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