X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f6eaec925f03f243cbf35072290f9b303f61186..1aa3e471fea5255ce9dc0cc53a670ccaa5ddbdb4:/samples/widgets/checkbox.cpp?ds=inline diff --git a/samples/widgets/checkbox.cpp b/samples/widgets/checkbox.cpp index e336b16221..d0c53b5734 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(wxBookCtrl *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(wxBookCtrl *book, + wxImageList *imaglist) + : WidgetsPage(book) { imaglist->Add(wxBitmap(checkbox_xpm));