PushButton

PushButtonSetColorSpec

Set the colors used to draw the button

Syntax

Signature
xBool           PushButtonSetColorSpec( PushButton *pushButton, const char *colorSpec );

Arguments

pushButton the push button.

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 color for an unfocused button, a focused button at rest, a pressed button, and the accelerator character, in that order. The pressed state takes precedence over focus when drawing.

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

See also