From: Vadim Zeitlin Date: Thu, 26 Nov 2009 15:59:20 +0000 (+0000) Subject: Use wxTE_RICH style for the log window in the text sample. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8faed39597d32bbb2073e5c686c754473dc5575a Use wxTE_RICH style for the log window in the text sample. This makes it have nicer colour (white instead of grey by default) under MSW and wxTE_RICH was already in the code, just commented out -- it seems it's better to enable it (as it also allows more text to be shown in the control under old Windows versions) than to remove it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/text/text.cpp b/samples/text/text.cpp index 6cd3a13646..3e1efc157f 100644 --- a/samples/text/text.cpp +++ b/samples/text/text.cpp @@ -1031,7 +1031,7 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) #if wxUSE_LOG m_log = new wxTextCtrl( this, wxID_ANY, wxT("This is the log window.\n"), wxPoint(5,260), wxSize(630,100), - wxTE_MULTILINE | wxTE_READONLY /* | wxTE_RICH */); + wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH); m_logOld = wxLog::SetActiveTarget( new wxLogTextCtrl( m_log ) ); #endif // wxUSE_LOG