]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/slider.cpp
fixed typo in wxString::swap() which was completely broken
[wxWidgets.git] / samples / widgets / slider.cpp
index bdac12d8cfe6f5516e25d4cd590185e1647ada4a..2aa0e4027b92a442f40f2f08c839d63fc8e9da28 100644 (file)
@@ -39,7 +39,7 @@
 #include "wx/sizer.h"
 
 #include "widgets.h"
-
+#if 1
 #include "icons/slider.xpm"
 
 // ----------------------------------------------------------------------------
@@ -130,8 +130,8 @@ protected:
                *m_textTickFreq;
 
 private:
-    DECLARE_EVENT_TABLE();
-    DECLARE_WIDGETS_PAGE(SliderWidgetsPage);
+    DECLARE_EVENT_TABLE()
+    DECLARE_WIDGETS_PAGE(SliderWidgetsPage)
 };
 
 // ----------------------------------------------------------------------------
@@ -248,7 +248,7 @@ SliderWidgetsPage::SliderWidgetsPage(wxNotebook *notebook,
 
     // right pane
     wxSizer *sizerRight = new wxBoxSizer(wxHORIZONTAL);
-    sizerRight->SetMinSize(250, 0);
+    sizerRight->SetMinSize(150, 0);
     m_sizerSlider = sizerRight; // save it to modify it later
 
     Reset();
@@ -256,7 +256,7 @@ SliderWidgetsPage::SliderWidgetsPage(wxNotebook *notebook,
 
     // the 3 panes panes compose the window
     sizerTop->Add(sizerLeft, 0, wxGROW | (wxALL & ~wxLEFT), 10);
-    sizerTop->Add(sizerMiddle, 1, wxGROW | wxALL, 10);
+    sizerTop->Add(sizerMiddle, 0, wxGROW | wxALL, 10);
     sizerTop->Add(sizerRight, 1, wxGROW | (wxALL & ~wxRIGHT), 10);
 
     // final initializations
@@ -468,3 +468,4 @@ void SliderWidgetsPage::OnSlider(wxCommandEvent& event)
     wxLogMessage(_T("Slider value changed, now %d"), value);
 }
 
+#endif
\ No newline at end of file