X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80fdcdb90ef779185492dab676d461fc34933312..ab7049776d45e622f621dd06216a4c1a1ad34b15:/src/osx/spinctrl_osx.cpp diff --git a/src/osx/spinctrl_osx.cpp b/src/osx/spinctrl_osx.cpp index aaba05cb43..acd16fac55 100644 --- a/src/osx/spinctrl_osx.cpp +++ b/src/osx/spinctrl_osx.cpp @@ -196,13 +196,6 @@ BEGIN_EVENT_TABLE(wxSpinCtrlButton, wxSpinButton) EVT_SPIN(wxID_ANY, wxSpinCtrlButton::OnSpinButton) END_EVENT_TABLE() -BEGIN_EVENT_TABLE(wxSpinCtrl, wxControl) - WX_EVENT_TABLE_CONTROL_CONTAINER(wxSpinCtrl) -END_EVENT_TABLE() - -WX_DELEGATE_TO_CONTROL_CONTAINER(wxSpinCtrl, wxControl) - - // ============================================================================ // implementation // ============================================================================ @@ -215,7 +208,6 @@ void wxSpinCtrl::Init() { m_text = NULL; m_btn = NULL; - WX_INIT_CONTROL_CONTAINER(); } bool wxSpinCtrl::Create(wxWindow *parent, @@ -229,8 +221,6 @@ bool wxSpinCtrl::Create(wxWindow *parent, int initial, const wxString& name) { - DontCreatePeer(); - if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) ) { @@ -330,6 +320,8 @@ bool wxSpinCtrl::Enable(bool enable) { if ( !wxControl::Enable(enable) ) return false; + m_text->Enable(enable); + m_btn->Enable(enable); return true; }