X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f6eaec925f03f243cbf35072290f9b303f61186..c1bf3a3e90edc2ad50446c5d8891af17bb188ebf:/samples/widgets/checkbox.cpp diff --git a/samples/widgets/checkbox.cpp b/samples/widgets/checkbox.cpp index e336b16221..aeaf200853 100644 --- a/samples/widgets/checkbox.cpp +++ b/samples/widgets/checkbox.cpp @@ -73,9 +73,11 @@ enum class CheckBoxWidgetsPage : public WidgetsPage { public: - CheckBoxWidgetsPage(wxNotebook *notebook, wxImageList *imaglist); + CheckBoxWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist); virtual ~CheckBoxWidgetsPage(){}; + virtual wxControl *GetWidget() const { return m_checkbox; } + protected: // event handlers void OnCheckBox(wxCommandEvent& event); @@ -147,9 +149,9 @@ END_EVENT_TABLE() IMPLEMENT_WIDGETS_PAGE(CheckBoxWidgetsPage, wxT("CheckBox")); -CheckBoxWidgetsPage::CheckBoxWidgetsPage(wxNotebook *notebook, - wxImageList *imaglist) - : WidgetsPage(notebook) +CheckBoxWidgetsPage::CheckBoxWidgetsPage(wxBookCtrlBase *book, + wxImageList *imaglist) + : WidgetsPage(book) { imaglist->Add(wxBitmap(checkbox_xpm));