X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f6475c145b713efc0c3d8b482338438e927b763..8ce68f7fc03beda6b7cbfdd7180a8f7f7eee952d:/samples/widgets/textctrl.cpp?ds=sidebyside diff --git a/samples/widgets/textctrl.cpp b/samples/widgets/textctrl.cpp index 7d0536507a..e3f6c7845e 100644 --- a/samples/widgets/textctrl.cpp +++ b/samples/widgets/textctrl.cpp @@ -412,6 +412,7 @@ void TextWidgetsPage::CreateContent() m_chkFilename = CreateCheckBoxAndAddToSizer( sizerLeft, _T("&Filename control") ); + m_chkFilename->Disable(); // not implemented yet sizerLeft->AddSpacer(5); static const wxString wrap[] = @@ -558,8 +559,6 @@ void TextWidgetsPage::CreateContent() sizerTop->Add(m_sizerText, 1, wxGROW | (wxALL & ~wxRIGHT), 10); SetSizer(sizerTop); - - sizerTop->Fit(this); } // ---------------------------------------------------------------------------- @@ -641,8 +640,6 @@ void TextWidgetsPage::CreateText() flags |= wxTE_PASSWORD; if ( m_chkReadonly->GetValue() ) flags |= wxTE_READONLY; - if ( m_chkFilename->GetValue() ) - flags |= wxTE_FILENAME; switch ( m_radioWrap->GetSelection() ) { @@ -701,6 +698,11 @@ void TextWidgetsPage::CreateText() m_text = new WidgetsTextCtrl(this, TextPage_Textctrl, valueOld, flags); +#if 0 + if ( m_chkFilename->GetValue() ) + ; +#endif // TODO + // cast to int needed to silence gcc warning about different enums m_sizerText->Add(m_text, 1, wxALL | (flags & wxTE_MULTILINE ? (int)wxGROW