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:
@@ -69,11 +69,14 @@ class HyperlinkWidgetsPage : public WidgetsPage
|
||||
{
|
||||
public:
|
||||
HyperlinkWidgetsPage(WidgetsBookCtrl *book, wxImageList *imaglist);
|
||||
virtual ~HyperlinkWidgetsPage(){};
|
||||
virtual ~HyperlinkWidgetsPage() {}
|
||||
|
||||
virtual wxControl *GetWidget() const { return m_hyperlink; }
|
||||
virtual void RecreateWidget() { CreateHyperlink(); }
|
||||
|
||||
// lazy creation of the content
|
||||
virtual void CreateContent();
|
||||
|
||||
protected:
|
||||
// event handlers
|
||||
void OnButtonSetLabel(wxCommandEvent& event);
|
||||
@@ -128,7 +131,11 @@ IMPLEMENT_WIDGETS_PAGE(HyperlinkWidgetsPage, wxT("Hyperlink"),
|
||||
|
||||
HyperlinkWidgetsPage::HyperlinkWidgetsPage(WidgetsBookCtrl *book,
|
||||
wxImageList *imaglist)
|
||||
:WidgetsPage(book, imaglist, hyperlnk_xpm)
|
||||
:WidgetsPage(book, imaglist, hyperlnk_xpm)
|
||||
{
|
||||
}
|
||||
|
||||
void HyperlinkWidgetsPage::CreateContent()
|
||||
{
|
||||
wxSizer *sizerTop = new wxBoxSizer(wxHORIZONTAL);
|
||||
|
||||
|
Reference in New Issue
Block a user