]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/slider.cpp
remove file lists on exit
[wxWidgets.git] / samples / widgets / slider.cpp
index 4502d6c87148532835d9472670bbe48310091a51..ec7b0bf6045a1018369e383e98a6a3b76e5b39e1 100644 (file)
@@ -95,6 +95,9 @@ public:
     virtual wxControl *GetWidget() const { return m_slider; }
     virtual void RecreateWidget() { CreateSlider(); }
 
+    // lazy creation of the content
+    virtual void CreateContent();
+
 protected:
     // event handlers
     void OnButtonReset(wxCommandEvent& event);
@@ -223,7 +226,10 @@ SliderWidgetsPage::SliderWidgetsPage(WidgetsBookCtrl *book,
 
     m_slider = (wxSlider *)NULL;
     m_sizerSlider = (wxSizer *)NULL;
+}
 
+void SliderWidgetsPage::CreateContent()
+{
     wxSizer *sizerTop = new wxBoxSizer(wxHORIZONTAL);
 
     // left pane