ButtonBar

ButtonBarSetColorSpec

Set the colors used to draw the button bar

Syntax

Signature
xBool       ButtonBarSetColorSpec( ButtonBar *buttonBar, const char *colorSpec );

Arguments

buttonBar the button bar.

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 five entries color the normal caption and background, the highlighted caption and background, the normal shortcut label, the highlighted shortcut label and the entire disabled button, in that order. Empty slots from separators use the first color.

With the initial `SetColor()` value, the default is `N/BG,N/W,W/N,W+/N,N+/BG`. With a custom `SetColor()` value, the bar takes entries 5, 2, 1, 2 and 4. A missing entry uses the first color from `SetColor()`. Call `ButtonBarDisplay()` to redraw in the new colors.

See also