On-demand creation of the pages for speedup of sample launch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user