From 309824154bd20c069dea337f2d9d750eb14eae31 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 3 Jan 2002 00:45:22 +0000 Subject: [PATCH] log textctrl should be readonly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/text/text.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ) ); -- 2.45.2