ScrollBar

ScrollBarSetColorSpec

Set the colors of the track, arrows and thumb

Syntax

Signature
xBool          ScrollBarSetColorSpec( ScrollBar *scrollBar, const char *colorSpec );

Arguments

scrollBar the scroll bar.

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

Return value

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

Description

The first color is for the track and the second is for both arrows and the thumb. The defaults use entries 5 and 2 of `SetColor()`. A missing entry uses the first color from `SetColor()`. Call `ScrollBarDisplay()` to redraw the entire bar in the new colors.

See also