class CheckBoxWidgetsPage : public WidgetsPage
{
public:
- CheckBoxWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
- virtual ~CheckBoxWidgetsPage();
+ CheckBoxWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ virtual ~CheckBoxWidgetsPage(){};
+
+ virtual wxControl *GetWidget() const { return m_checkbox; }
protected:
// event handlers
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));
sizerTop->Fit(this);
}
-CheckBoxWidgetsPage::~CheckBoxWidgetsPage()
-{
-}
-
void CheckBoxWidgetsPage::Reset()
{
m_chkRight->SetValue(false);