X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32b8ec418aee4e38877d4cb79e2984c766dcc358..19e30148e18cc99296b26503c155e5cef59045f4:/samples/widgets/slider.cpp diff --git a/samples/widgets/slider.cpp b/samples/widgets/slider.cpp index bdac12d8cf..2aa0e4027b 100644 --- a/samples/widgets/slider.cpp +++ b/samples/widgets/slider.cpp @@ -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