Text color in wxEuphoria

new topic     » topic index » view thread      » older message » newer message

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.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu