]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/checkbox.cpp
regen bakefiles - get rid of explicit size setting after ctor
[wxWidgets.git] / samples / widgets / checkbox.cpp
index e336b162213d6c5802faa4c6864e929fa2fbc4d4..d0c53b5734891d2bd729bd8f24e297c5170593ca 100644 (file)
@@ -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));