CheckBox

CheckBoxSetColorSpec

Set the colors used to draw the check box

Syntax

Signature
xBool         CheckBoxSetColorSpec( CheckBox *checkBox, const char *colorSpec );

Arguments

checkBox the check box.

colorSpec a comma-separated color string to copy, or NULL to restore defaults based on the current SetColor() setting.

Return value

T on success, or F if the object is NULL.

Description

The four entries give the mark color without focus, the mark color with focus, the color of unfocused caption text and the delimiters, and the accelerator color. With focus, the entire caption uses the fourth color.

With the initial `SetColor()` value, the default is `W/N,W+/N,W/N,W+/N`. With a custom `SetColor()` value, the check box takes entries 5, 2, 1 and 4. A missing entry uses the first color.

See also