Next: , Previous: , Up: Menu Procedures   [Contents][Index]


5.5.3.1 Menu Colors and Attributes

Procedure: set-menu-fore! menu attr
Procedure: set-menu-back! menu attr
Procedure: set-menu-grey! menu attr

The procedure set-menu-fore! sets the colors and attributes of selected menu items. The default is A_STANDOUT.

The procedure set-menu-back! sets the colors and attributes of selectable but not currently selected menu items. Its default is A_NORMAL.

The procedure set-menu-grey! sets the colors and attributes of unselectable menu items for menus that allow multiple selections. Its default is A_UNDERLINE.

Procedure: menu-fore menu
Procedure: menu-back menu
Procedure: menu-grey menu

These procedures return the colors and attributes of selected, selectable, and unselectable menu items respectively.

Procedure: set-menu-pad menu

This procedure sets the character used to fill the space between the name and the description parts of a menu.

Procedure: menu-pad menu

This procedure returns the character used to fill the space between the name and description parts of a menu.

Procedure: item-count menu

Returns the number of menu items attached to menu.