- StaticWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
- virtual ~StaticWidgetsPage();
+ StaticWidgetsPage(WidgetsBookCtrl *book, wxImageList *imaglist);
+ virtual ~StaticWidgetsPage(){};
+
+ virtual wxControl *GetWidget() const { return m_statText; }
+ virtual void RecreateWidget() { CreateStatic(); }
wxStaticBox *m_staticBox;
wxStaticBoxSizer *m_sizerStatBox;
wxStaticText *m_statText;
wxStaticBox *m_staticBox;
wxStaticBoxSizer *m_sizerStatBox;
wxStaticText *m_statText;
-IMPLEMENT_WIDGETS_PAGE(StaticWidgetsPage, _T("Static"));
+IMPLEMENT_WIDGETS_PAGE(StaticWidgetsPage, _T("Static"),
+ (int)wxPlatform(GENERIC_CTRLS).If(wxMSW,NATIVE_CTRLS)
+ );
-StaticWidgetsPage::StaticWidgetsPage(wxNotebook *notebook,
- wxImageList *imaglist)
- : WidgetsPage(notebook)
+StaticWidgetsPage::StaticWidgetsPage(WidgetsBookCtrl *book,
+ wxImageList *imaglist)
+ : WidgetsPage(book, imaglist, statbox_xpm)
// ----------------------------------------------------------------------------
// operations
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// operations
// ----------------------------------------------------------------------------
m_statLine = new wxStaticLine(this, wxID_ANY,
wxDefaultPosition, wxDefaultSize,
isVert ? wxLI_VERTICAL : wxLI_HORIZONTAL);
m_statLine = new wxStaticLine(this, wxID_ANY,
wxDefaultPosition, wxDefaultSize,
isVert ? wxLI_VERTICAL : wxLI_HORIZONTAL);
m_sizerStatBox->Add(m_statText, 1, wxGROW | wxALL, 5);
m_sizerStatBox->Add(m_statText, 1, wxGROW | wxALL, 5);
m_sizerStatBox->Add(m_statLine, 0, wxGROW | wxALL, 5);
m_sizerStatBox->Add(m_statLine, 0, wxGROW | wxALL, 5);
m_sizerStatBox->Add(0, 0, 1);
m_sizerStatic->Add(m_sizerStatBox, 1, wxGROW);
m_sizerStatBox->Add(0, 0, 1);
m_sizerStatic->Add(m_sizerStatBox, 1, wxGROW);