]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/textctrl.cpp
corrected setting the locale of the c-lib for mac
[wxWidgets.git] / samples / widgets / textctrl.cpp
index 6ad3bb6a2c6976ba6cdde2a54a3c168b54dbc97e..21a4f36f7c20cab2d0c1d15c3b42a3e62df555d4 100644 (file)
@@ -113,9 +113,11 @@ class TextWidgetsPage : public WidgetsPage
 {
 public:
     // ctor(s) and dtor
-    TextWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
+    TextWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
     virtual ~TextWidgetsPage(){};
 
+    virtual wxControl *GetWidget() const { return m_text; }
+
 protected:
     // create an info text contorl
     wxTextCtrl *CreateInfoText();
@@ -308,8 +310,8 @@ IMPLEMENT_WIDGETS_PAGE(TextWidgetsPage, _T("Text"));
 // TextWidgetsPage creation
 // ----------------------------------------------------------------------------
 
-TextWidgetsPage::TextWidgetsPage(wxNotebook *notebook, wxImageList *imaglist)
-               : WidgetsPage(notebook)
+TextWidgetsPage::TextWidgetsPage(wxBookCtrl *book, wxImageList *imaglist)
+               : WidgetsPage(book)
 {
     imaglist->Add(wxBitmap(text_xpm));