use stock colour/pen/brush objects in samples
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -985,13 +985,13 @@ void MyFrame::WriteInitialText()
|
||||
r.WriteImage(wxBitmap(smiley_xpm));
|
||||
r.WriteText(wxT(" Well, you can change text "));
|
||||
|
||||
r.BeginTextColour(wxColour(255, 0, 0));
|
||||
r.BeginTextColour(*wxRED);
|
||||
r.WriteText(wxT("colour, like this red bit."));
|
||||
r.EndTextColour();
|
||||
|
||||
wxRichTextAttr backgroundColourAttr;
|
||||
backgroundColourAttr.SetBackgroundColour(*wxGREEN);
|
||||
backgroundColourAttr.SetTextColour(wxColour(0, 0, 255));
|
||||
backgroundColourAttr.SetTextColour(*wxBLUE);
|
||||
r.BeginStyle(backgroundColourAttr);
|
||||
r.WriteText(wxT(" And this blue on green bit."));
|
||||
r.EndStyle();
|
||||
|
Reference in New Issue
Block a user