Implemented text background colour

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2007-03-05 15:22:07 +00:00
parent d38819f56f
commit 3e54156282
2 changed files with 104 additions and 95 deletions

View File

@@ -757,9 +757,12 @@ MyFrame::MyFrame(const wxString& title, wxWindowID id, const wxPoint& pos,
r.WriteText(wxT("colour, like this red bit."));
r.EndTextColour();
r.BeginTextColour(wxColour(0, 0, 255));
r.WriteText(wxT(" And this blue bit."));
r.EndTextColour();
wxRichTextAttr backgroundColourAttr;
backgroundColourAttr.SetBackgroundColour(*wxGREEN);
backgroundColourAttr.SetTextColour(wxColour(0, 0, 255));
r.BeginStyle(backgroundColourAttr);
r.WriteText(wxT(" And this blue on green bit."));
r.EndStyle();
r.WriteText(wxT(" Naturally you can make things "));
r.BeginBold();