X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a56938e47598ebb4006cb8942f2d8ace07e54399..da98e15760bfcad41a5579e64955caadc2e535f3:/samples/widgets/static.cpp diff --git a/samples/widgets/static.cpp b/samples/widgets/static.cpp index 8680c07da7..63cfb0d583 100644 --- a/samples/widgets/static.cpp +++ b/samples/widgets/static.cpp @@ -139,8 +139,10 @@ END_EVENT_TABLE() class StaticWidgetsPage : public WidgetsPage { public: - StaticWidgetsPage(wxNotebook *notebook, wxImageList *imaglist); - virtual ~StaticWidgetsPage(); + StaticWidgetsPage(wxBookCtrl *book, wxImageList *imaglist); + virtual ~StaticWidgetsPage(){}; + + virtual wxControl *GetWidget() const { return m_statText; } protected: // event handlers @@ -203,9 +205,9 @@ END_EVENT_TABLE() IMPLEMENT_WIDGETS_PAGE(StaticWidgetsPage, _T("Static")); -StaticWidgetsPage::StaticWidgetsPage(wxNotebook *notebook, - wxImageList *imaglist) - : WidgetsPage(notebook) +StaticWidgetsPage::StaticWidgetsPage(wxBookCtrl *book, + wxImageList *imaglist) + : WidgetsPage(book) { imaglist->Add(wxBitmap(statbox_xpm)); @@ -302,10 +304,6 @@ StaticWidgetsPage::StaticWidgetsPage(wxNotebook *notebook, sizerTop->Fit(this); } -StaticWidgetsPage::~StaticWidgetsPage() -{ -} - // ---------------------------------------------------------------------------- // operations // ----------------------------------------------------------------------------