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:
		@@ -85,6 +85,9 @@ public:
 | 
			
		||||
    virtual wxControl *GetWidget() const { return m_button; }
 | 
			
		||||
    virtual void RecreateWidget() { CreateButton(); }
 | 
			
		||||
 | 
			
		||||
    // lazy creation of the content
 | 
			
		||||
    virtual void CreateContent();
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
    // event handlers
 | 
			
		||||
    void OnCheckOrRadioBox(wxCommandEvent& event);
 | 
			
		||||
@@ -183,7 +186,10 @@ ButtonWidgetsPage::ButtonWidgetsPage(WidgetsBookCtrl *book,
 | 
			
		||||
 | 
			
		||||
    m_button = (wxButton *)NULL;
 | 
			
		||||
    m_sizerButton = (wxSizer *)NULL;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void ButtonWidgetsPage::CreateContent()
 | 
			
		||||
{
 | 
			
		||||
    wxSizer *sizerTop = new wxBoxSizer(wxHORIZONTAL);
 | 
			
		||||
 | 
			
		||||
    // left pane
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user