/////////////////////////////////////////////////////////////////////////////
-// Program: wxWindows Widgets Sample
+// Program: wxWidgets Widgets Sample
// Name: textctrl.cpp
// Purpose: part of the widgets sample showing wxTextCtrl
// Author: Vadim Zeitlin
{
public:
// ctor(s) and dtor
- TextWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
- virtual ~TextWidgetsPage();
+ TextWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ virtual ~TextWidgetsPage(){};
+
+ virtual wxControl *GetWidget() const { return m_text; }
protected:
// create an info text contorl
wxString m_range10_20;
private:
- // any class wishing to process wxWindows events must use this macro
+ // any class wishing to process wxWidgets events must use this macro
DECLARE_EVENT_TABLE()
DECLARE_WIDGETS_PAGE(TextWidgetsPage)
};
// TextWidgetsPage creation
// ----------------------------------------------------------------------------
-TextWidgetsPage::TextWidgetsPage(wxNotebook *notebook, wxImageList *imaglist)
- : WidgetsPage(notebook)
+TextWidgetsPage::TextWidgetsPage(wxBookCtrl *book, wxImageList *imaglist)
+ : WidgetsPage(book)
{
imaglist->Add(wxBitmap(text_xpm));
sizerTop->Fit(this);
}
-TextWidgetsPage::~TextWidgetsPage()
-{
-}
-
// ----------------------------------------------------------------------------
// creation helpers
// ----------------------------------------------------------------------------