setCtlFontColor

Syntax

setCtlFontColor(int index, int color)

Arguments

index
The index of the control whose font color you wish to change.
color
The color to change the font text to.

Description

This function changes the text color of the user control with the given index. The color value can be an RGB triplet (as in RGB(r,g,b)) or a COLOR function (as in COLOR(DarkGreenCopper)). The following user controls support text coloring: standard scrollbars, checkboxes, radio buttons, group boxes and static text.

Example

setCtlFontColor( 0, RGB(255,255,0) );    //set text color to yellow
setCtlFontColor( 0, COLOR(MoneyGreen) ); //set text color to "Money Green"
setCtlFontColor( 0, -1 );                //set text color to default

Also see

setCtlColor

Comments

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.