HowTo change text colour        
Print

To change the colour of any text within MyGUI simply put in the hex colour value in the text

For example

widget->setCaption("#FF0000Red Text");
widget->setCaption("#00FF00Green Text");
widget->setCaption("#FF0000Colored #00FF00Text");

 
Example for a list:

list->addItem("#FF0000Red line");
list->addItem("#00FF00Green line");
list->addItem("#FF0000Colored #00FF00line");

 
You can colour any text used in any widget.


Contributors to this page: Altren595 points  and AshMcConnell111 points  .
Page last modified on Tuesday 29 of June, 2010 15:52:02 UTC by Altren595 points .


The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.
As an exception, any source code contributed within the content is released into the Public Domain.