[wxruby-users] text color

Alex Fenton alex at pressure.to
Thu Nov 13 11:47:25 EST 2008


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





More information about the wxruby-users mailing list