X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34ad2e8f4a6b2f3caa71464eecf5a6e8e300322f..c1bf3a3e90edc2ad50446c5d8891af17bb188ebf:/samples/widgets/checkbox.cpp?ds=sidebyside diff --git a/samples/widgets/checkbox.cpp b/samples/widgets/checkbox.cpp index efa37bf753..aeaf200853 100644 --- a/samples/widgets/checkbox.cpp +++ b/samples/widgets/checkbox.cpp @@ -32,6 +32,9 @@ #include "wx/bitmap.h" #include "wx/button.h" #include "wx/checkbox.h" + #include "wx/radiobox.h" + #include "wx/statbox.h" + #include "wx/textctrl.h" #include "wx/sizer.h" #endif @@ -70,8 +73,10 @@ enum class CheckBoxWidgetsPage : public WidgetsPage { public: - CheckBoxWidgetsPage(wxNotebook *notebook, wxImageList *imaglist); - virtual ~CheckBoxWidgetsPage(); + CheckBoxWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist); + virtual ~CheckBoxWidgetsPage(){}; + + virtual wxControl *GetWidget() const { return m_checkbox; } protected: // event handlers @@ -144,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)); @@ -220,10 +225,6 @@ CheckBoxWidgetsPage::CheckBoxWidgetsPage(wxNotebook *notebook, sizerTop->Fit(this); } -CheckBoxWidgetsPage::~CheckBoxWidgetsPage() -{ -} - void CheckBoxWidgetsPage::Reset() { m_chkRight->SetValue(false);