]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/textctrl.cpp
more order in wxCRT_filefunctions: define A and W versions, just as for everything...
[wxWidgets.git] / samples / widgets / textctrl.cpp
index c1e6afb816b134a7c883147651bc865273b4af04..f0ad274d1baca8d0aa3ae7d311a5509e2abe9bfe 100644 (file)
@@ -138,6 +138,7 @@ public:
     virtual ~TextWidgetsPage(){};
 
     virtual wxControl *GetWidget() const { return m_text; }
+    virtual wxTextEntryBase *GetTextEntry() const { return m_text; }
     virtual void RecreateWidget() { CreateText(); }
 
     // lazy creation of the content
@@ -559,8 +560,6 @@ void TextWidgetsPage::CreateContent()
     sizerTop->Add(m_sizerText, 1, wxGROW | (wxALL & ~wxRIGHT), 10);
 
     SetSizer(sizerTop);
-
-    sizerTop->Fit(this);
 }
 
 // ----------------------------------------------------------------------------