X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f6eaec925f03f243cbf35072290f9b303f61186..9dbadebe924436c3c658fb5a51c3a22fd9ca8c91:/samples/widgets/static.cpp diff --git a/samples/widgets/static.cpp b/samples/widgets/static.cpp index 8905378377..496284b85c 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(wxBookCtrlBase *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(wxBookCtrlBase *book, + wxImageList *imaglist) + : WidgetsPage(book) { imaglist->Add(wxBitmap(statbox_xpm));