class ButtonWidgetsPage : public WidgetsPage
{
public:
- ButtonWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
- virtual ~ButtonWidgetsPage();
+ ButtonWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ virtual ~ButtonWidgetsPage(){};
+
+ virtual wxControl *GetWidget() const { return m_button; }
protected:
// event handlers
wxRadioBox *m_radioHAlign,
*m_radioVAlign;
- // the gauge itself and the sizer it is in
+ // the button itself and the sizer it is in
wxButton *m_button;
wxSizer *m_sizerButton;
IMPLEMENT_WIDGETS_PAGE(ButtonWidgetsPage, _T("Button"));
-ButtonWidgetsPage::ButtonWidgetsPage(wxNotebook *notebook,
- wxImageList *imaglist)
- : WidgetsPage(notebook)
+ButtonWidgetsPage::ButtonWidgetsPage(wxBookCtrl *book,
+ wxImageList *imaglist)
+ : WidgetsPage(book)
{
imaglist->Add(wxBitmap(button_xpm));
m_chkDefault = CreateCheckBoxAndAddToSizer(sizerLeft, _T("&Default"));
#ifndef __WXUNIVERSAL__
- // only wxUniv currently supoprts buttons with images
+ // only wxUniv currently supports buttons with images
m_chkImage->Disable();
#endif // !wxUniv
sizerTop->Fit(this);
}
-ButtonWidgetsPage::~ButtonWidgetsPage()
-{
-}
-
// ----------------------------------------------------------------------------
// operations
// ----------------------------------------------------------------------------