]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/richtext/richtext.cpp
Initialize wxRibbonBar::m_help_button_hovered.
[wxWidgets.git] / samples / richtext / richtext.cpp
index f101c86e5b743fa18a2238d444c023dc32acd1ff..b14b9bf1d31bf6b64d5fb3c43b14372dd1a48c46 100644 (file)
@@ -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();