diff --git a/samples/toolbar/toolbar.cpp b/samples/toolbar/toolbar.cpp index 57e6c2757e..6464a9fe41 100644 --- a/samples/toolbar/toolbar.cpp +++ b/samples/toolbar/toolbar.cpp @@ -640,7 +640,8 @@ MyFrame::MyFrame(wxFrame* parent, PopulateToolbar(m_extraToolBar); #endif - m_textWindow = new wxTextCtrl(m_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE); + // Use a read-only text control; Cut tool will not cut selected text anyway. + m_textWindow = new wxTextCtrl(m_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY); wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL); m_panel->SetSizer(sizer);