#pragma hdrstop
#endif
+#if wxUSE_SPINBTN
+
// for all others, include the necessary headers
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/sizer.h"
#include "widgets.h"
-#if wxUSE_SPINBTN
+
#include "icons/spinbtn.xpm"
// ----------------------------------------------------------------------------
class SpinBtnWidgetsPage : public WidgetsPage
{
public:
- SpinBtnWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
- virtual ~SpinBtnWidgetsPage();
+ SpinBtnWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
+ virtual ~SpinBtnWidgetsPage(){};
+
+ virtual wxControl *GetWidget() const { return m_spinbtn; }
+ virtual wxControl *GetWidget2() const { return m_spinctrl; }
protected:
// event handlers
IMPLEMENT_WIDGETS_PAGE(SpinBtnWidgetsPage, _T("Spin"));
-SpinBtnWidgetsPage::SpinBtnWidgetsPage(wxNotebook *notebook,
+SpinBtnWidgetsPage::SpinBtnWidgetsPage(wxBookCtrlBase *book,
wxImageList *imaglist)
- : WidgetsPage(notebook)
+ : WidgetsPage(book)
{
m_chkVert = NULL;
m_chkWrap = NULL;
sizerTop->Fit(this);
}
-SpinBtnWidgetsPage::~SpinBtnWidgetsPage()
-{
-}
-
// ----------------------------------------------------------------------------
// operations
// ----------------------------------------------------------------------------