diff --git a/samples/text/text.cpp b/samples/text/text.cpp index e38f416496..4d40c8dcfb 100644 --- a/samples/text/text.cpp +++ b/samples/text/text.cpp @@ -1116,7 +1116,7 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) m_text = new MyTextCtrl( this, wxID_ANY, "Single line.", wxDefaultPosition, wxDefaultSize, - wxTE_PROCESS_ENTER); + wxTE_PROCESS_ENTER | wxTE_RICH2); m_text->SetForegroundColour(*wxBLUE); m_text->SetBackgroundColour(*wxLIGHT_GREY); (*m_text) << " Appended.";