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:
@@ -90,6 +90,9 @@ public:
|
||||
virtual wxControl *GetWidget() const { return m_filePicker; }
|
||||
virtual void RecreateWidget() { RecreateAllPickers(); }
|
||||
|
||||
// lazy creation of the content
|
||||
virtual void CreateContent();
|
||||
|
||||
protected:
|
||||
enum PickerKind
|
||||
{
|
||||
@@ -206,6 +209,10 @@ IMPLEMENT_WIDGETS_PAGE(PickerWidgetsPage, _T("Pickers"),
|
||||
PickerWidgetsPage::PickerWidgetsPage(WidgetsBookCtrl *book,
|
||||
wxImageList *imaglist)
|
||||
: WidgetsPage(book, imaglist, picker_xpm)
|
||||
{
|
||||
}
|
||||
|
||||
void PickerWidgetsPage::CreateContent()
|
||||
{
|
||||
// left pane
|
||||
wxSizer *boxleft = new wxBoxSizer(wxVERTICAL);
|
||||
|
||||
Reference in New Issue
Block a user