Colored text on the wxTextCtrl

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
jkbagain
Knows some wx things
Knows some wx things
Posts: 29
Joined: Wed May 09, 2007 1:01 am
Location: Manila,Philippines
Contact:

Colored text on the wxTextCtrl

Post by jkbagain » Fri May 11, 2007 3:29 am

Could u pls help me on how to make the color of my txt in the txt control be colored.
Everytime I enter a character on my txtxtrl the default color of the text is black so how could i perform to change that color into red or blue.....


Thanks in advanced.....
What important in a problem is not the solution but the lessons you learned in finding the solution.

lester
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Sep 02, 2006 7:24 pm
Location: Ukraine

Post by lester » Fri May 11, 2007 3:32 am

txtctrl->SetForegroundColour( *wxRED );

Post Reply