X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f6eaec925f03f243cbf35072290f9b303f61186..4f31d61012bfa8371e268e42857f2d47f77c0af6:/samples/widgets/button.cpp diff --git a/samples/widgets/button.cpp b/samples/widgets/button.cpp index ebe6d45887..46f32f6da9 100644 --- a/samples/widgets/button.cpp +++ b/samples/widgets/button.cpp @@ -77,9 +77,11 @@ enum class ButtonWidgetsPage : public WidgetsPage { public: - ButtonWidgetsPage(wxNotebook *notebook, wxImageList *imaglist); + ButtonWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist); virtual ~ButtonWidgetsPage(){}; + virtual wxControl *GetWidget() const { return m_button; } + protected: // event handlers void OnCheckOrRadioBox(wxCommandEvent& event); @@ -137,9 +139,9 @@ END_EVENT_TABLE() IMPLEMENT_WIDGETS_PAGE(ButtonWidgetsPage, _T("Button")); -ButtonWidgetsPage::ButtonWidgetsPage(wxNotebook *notebook, - wxImageList *imaglist) - : WidgetsPage(notebook) +ButtonWidgetsPage::ButtonWidgetsPage(wxBookCtrlBase *book, + wxImageList *imaglist) + : WidgetsPage(book) { imaglist->Add(wxBitmap(button_xpm));