History: HowTo change text colour
Source of version: 2 (current)
Copy to clipboard
To change the colour of any text within MyGUI simply put in the hex colour value in the text
For example
{CODE(wrap="1", colors="c++")}widget->setCaption("#FF0000Red Text");
widget->setCaption("#00FF00Green Text");
widget->setCaption("#FF0000Colored #00FF00Text");{CODE}
Example for a list:
{CODE(wrap="1", colors="c++")}list->addItem("#FF0000Red line");
list->addItem("#00FF00Green line");
list->addItem("#FF0000Colored #00FF00line");{CODE}
You can colour any text used in any widget.