]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/slider.cpp
Fixed the code to actually work.
[wxWidgets.git] / samples / widgets / slider.cpp
index 15dcf5c2078d7885d2694763187e5e318a2ba3f4..45f1bed255b660d59903f719049c126cab548c8a 100644 (file)
@@ -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"
@@ -43,6 +44,7 @@
 #include "wx/sizer.h"
 
 #include "widgets.h"
+#if wxUSE_SLIDER
 #include "icons/slider.xpm"
 
 // ----------------------------------------------------------------------------
@@ -388,8 +390,8 @@ void SliderWidgetsPage::CreateSlider()
         if ( m_sizerSlider->GetChildren().GetCount() )
         {
             // we have 2 spacers, remove them too
-            m_sizerSlider->Remove( 0u );
-            m_sizerSlider->Remove( 0u );
+            m_sizerSlider->Remove( 0 );
+            m_sizerSlider->Remove( 0 );
         }
 
         delete m_slider;
@@ -534,7 +536,7 @@ void SliderWidgetsPage::OnUpdateUIResetButton(wxUpdateUIEvent& event)
                   m_chkBothSides->GetValue() );
 }
 
-void SliderWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& event)
+void SliderWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event))
 {
     CreateSlider();
 }
@@ -601,3 +603,5 @@ void SliderWidgetsPage::OnSlider(wxScrollEvent& event)
                  event.GetPosition());
 }
 
+#endif
+    // wxUSE_SLIDER