From: Vadim Zeitlin Date: Thu, 3 Jan 2002 00:45:22 +0000 (+0000) Subject: log textctrl should be readonly X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/309824154bd20c069dea337f2d9d750eb14eae31 log textctrl should be readonly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/text/text.cpp b/samples/text/text.cpp index 05cd37a94e..d42dcf5575 100644 --- a/samples/text/text.cpp +++ b/samples/text/text.cpp @@ -733,7 +733,9 @@ END_EVENT_TABLE() MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) : wxPanel( frame, -1, wxPoint(x, y), wxSize(w, h) ) { - m_log = new wxTextCtrl( this, -1, "This is the log window.\n", wxPoint(5,260), wxSize(630,100), wxTE_MULTILINE ); + m_log = new wxTextCtrl( this, -1, "This is the log window.\n", + wxPoint(5,260), wxSize(630,100), + wxTE_MULTILINE | wxTE_READONLY /* | wxTE_RICH */); wxLog *old_log = wxLog::SetActiveTarget( new wxLogTextCtrl( m_log ) );