Forum: wxRuby text color

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
72b416125e0048f8279b1b57f973b66b?d=identicon&s=25 Cyrill Jakovlev (cyrill)
on 2008-11-13 17:43
Hello.
I can't change text color (on vista). How can I do this?
http://pastie.org/313982
I try mingw too..
06f6780c99d4a8dd71f2b474082ea9ce?d=identicon&s=25 Alex Fenton (Guest)
on 2008-11-13 17:51
(Received via mailing list)
Cyrill Jakovlev wrote:
> I can't change text color (on vista). How can I do this?
> http://pastie.org/313982
>

If you want to have coloured, styled text using TextAttr, you must
create your TextCtrl with the styles
Wx::TE_RICH|Wx::TE_RICH2|Wx::TE_MULTILINE

A normal multiline TextCtrl is just plain text, in system standard
colours.

hth
a
72b416125e0048f8279b1b57f973b66b?d=identicon&s=25 Cyrill Jakovlev (cyrill)
on 2008-11-14 01:33
Now text is coloured, tnx)
This topic is locked and can not be replied to.