X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aec18ff785687e1d0830da8cd287903128a994c6..084db46c8b4f3f8d5e6a5f55e09e04f5a680c8a5:/samples/widgets/spinbtn.cpp diff --git a/samples/widgets/spinbtn.cpp b/samples/widgets/spinbtn.cpp index fa798dd287..1d39412359 100644 --- a/samples/widgets/spinbtn.cpp +++ b/samples/widgets/spinbtn.cpp @@ -28,6 +28,7 @@ #ifndef WX_PRECOMP #include "wx/log.h" + #include "wx/bitmap.h" #include "wx/button.h" #include "wx/checkbox.h" #include "wx/radiobox.h" @@ -41,7 +42,7 @@ #include "wx/sizer.h" #include "widgets.h" -#if 1 +#if wxUSE_SPINBTN #include "icons/spinbtn.xpm" // ---------------------------------------------------------------------------- @@ -285,13 +286,13 @@ void SpinBtnWidgetsPage::CreateSpin() val = valOld; } - m_sizerSpin->Remove(m_spinbtn); - m_sizerSpin->Remove(m_spinctrl); + m_sizerSpin->Detach( m_spinbtn ); + m_sizerSpin->Detach( m_spinctrl ); // there are 3 spacers left - m_sizerSpin->Remove((int)0); - m_sizerSpin->Remove((int)0); - m_sizerSpin->Remove((int)0); + m_sizerSpin->Remove( 0 ); + m_sizerSpin->Remove( 0 ); + m_sizerSpin->Remove( 0 ); delete m_spinbtn; delete m_spinctrl; @@ -427,3 +428,4 @@ void SpinBtnWidgetsPage::OnSpinCtrl(wxCommandEvent& event) wxLogMessage(_T("Spin control value changed, now %d"), value); } #endif + // wxUSE_SPINBTN