SETCONTROLCOLOR

Top  Previous  Next

Syntax

SETCONTROLCOLOR(win as WINDOW,id as INT,fg as UINT,bg as UINT)

Description

Changes the color of a control.

Parameters

win - Window or dialog containing control.

id - Identifier of control.

fg - New foreground color.

bg - New background color.

Return value

None.

Remarks

The foreground color is used for the text color in most controls. @SYSBUTTON controls do not support color changes. Rich Edit control have their own text coloring functions.  Checkbox and radio button controls with the style BS_PUSHLIKE do not support color changes.

See Also: CONTROL

Example usage

SETCONTROLCOLOR mydlg, 7, RGB(255,255,255), RGB(0,0,0)