X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55b43eaa025408453e90a6c01f64215a9203da9a..174b59aceeb95f1e48fbe91543bf89e105a561ac:/samples/widgets/textctrl.cpp diff --git a/samples/widgets/textctrl.cpp b/samples/widgets/textctrl.cpp index c1e6afb816..f0ad274d1b 100644 --- a/samples/widgets/textctrl.cpp +++ b/samples/widgets/textctrl.cpp @@ -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); } // ----------------------------------------------------------------------------