X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f6eaec925f03f243cbf35072290f9b303f61186..b5887a837d1efe9436b6f28d58cfd60ad4fabcac:/samples/widgets/static.cpp?ds=sidebyside diff --git a/samples/widgets/static.cpp b/samples/widgets/static.cpp index 8905378377..63cfb0d583 100644 --- a/samples/widgets/static.cpp +++ b/samples/widgets/static.cpp @@ -139,9 +139,11 @@ END_EVENT_TABLE() class StaticWidgetsPage : public WidgetsPage { public: - StaticWidgetsPage(wxNotebook *notebook, wxImageList *imaglist); + StaticWidgetsPage(wxBookCtrl *book, wxImageList *imaglist); virtual ~StaticWidgetsPage(){}; + virtual wxControl *GetWidget() const { return m_statText; } + protected: // event handlers void OnCheckOrRadioBox(wxCommandEvent& event); @@ -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));