PopUpMenu

PopUpSetColorSpec

Set the colors used to draw the menu

Syntax

Signature
xBool       PopUpSetColorSpec( PopUpMenu *popUp, const char *colorSpec );

Arguments

popUp the pop-up menu.

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 six entries color the regular items, the current item, the accelerators of regular items, the accelerator of the current item, the disabled items, and the frame and separators, in that order.

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

See also