Text color in wxEuphoria
- Posted by xfox26 Feb 08, 2009
- 983 views
How can I add colors to text in a "wxTextCtrl"?
Here is the code
include wxeud.e constant main = create( wxFrame, {0, -1, "Client", -1, -1, 700, 400, wxDEFAULT_FRAME_STYLE} ) constant textbox = create( wxTextCtrl , {main, -1, "", -1, -1, -1, -1, wxTE_MULTILINE + wxTE_READONLY } ) append_text(textbox, "This text in BLACK\n") append_text(textbox, "This text in RED\n") append_text(textbox, "This text in BLUE\n") wxMain( main )
I have tried a lot of different things, but I could not set the text in colors.