From ad17bd33cf94c71d07bd08b71d5ab4c4d0f6a5b6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 8 Jul 2000 19:11:51 +0000 Subject: [PATCH] added colour tests git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/text/text.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/text/text.cpp b/samples/text/text.cpp index c8cb93668e..03895e1d11 100644 --- a/samples/text/text.cpp +++ b/samples/text/text.cpp @@ -624,6 +624,8 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) (*m_multitext) << " Appended."; m_multitext->SetInsertionPoint(0); m_multitext->WriteText( "Prepended. " ); + m_multitext->SetForegroundColour(*wxRED); + m_multitext->SetBackgroundColour(*wxLIGHT_GREY); #if wxUSE_TOOLTIPS m_multitext->SetToolTip("Press F1 here for statitics, F4 for capture and uncapture mouse."); @@ -644,6 +646,8 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) "wxHSCROLL style", wxPoint(450, 10), wxSize(200, 230), wxTE_RICH | wxTE_MULTILINE | wxHSCROLL); + m_textrich->SetForegroundColour(wxColour(0, 255, 255)); + m_textrich->SetBackgroundColour(*wxBLUE); } void MyPanel::OnSize( wxSizeEvent &event )