ListBox

ListBoxSetColorSpec

Set the colors used to draw the list box

Syntax

Signature
xBool        ListBoxSetColorSpec( ListBox *listBox, const char *colorSpec );

Arguments

listBox the list 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

Entries 1 and 2 color unselected and selected items without focus. Entries 3 and 4 color unselected and selected items with focus. Entries 5, 6 and 7 color the frame, caption and its accelerator. Entry 8 colors the drop-down button.

With the initial `SetColor()` value, the default is `W/N,W+/N,W+/N,N/W,W/N,W/N,W+/N`. A drop-down adds `W/N` as entry 8. With a custom `SetColor()` value, the list takes entries 5, 5, 5, 2, 3, 1 and 4, plus entry 1 for the drop-down button. A missing entry uses the first color from `SetColor()`.

See also