Download PDF file (516K bytes)
Transcript
Chapter 5: Curses Reference item-opts item 98 [Procedure] This procedure returns the options bit mask of item. set-item-value! item value item-value item [Procedure] [Procedure] If the menu option O_ONEVALUE is turned off, the menu can have more than one item selected simultaneously. In this case, the procedure item-value can be used to query item to see if it is selected. It returns #t or #f. An item can be selected with the procedure set-item-value!, which takes a menu item and a boolean value. It returns E_OK, E_SYSTEM_ERROR, or E_REQUEST_DENIED. item-visible? item [Procedure] Returns #t if item is mapped onto the screen. If a menu has more menu items than can be displayed at once, only some of the menu items will be mapped onto the screen. 5.5.3 Menu Procedures 5.5.3.1 Menu Colors and Attributes set-menu-fore! menu attr set-menu-back! menu attr set-menu-grey! menu attr [Procedure] [Procedure] [Procedure] 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. menu-fore menu menu-back menu menu-grey menu [Procedure] [Procedure] [Procedure] These procedures return the colors and attributes of selected, selectable, and unselectable menu items respectively. set-menu-pad menu [Procedure] This procedure sets the character used to fill the space between the name and the description parts of a menu. menu-pad menu [Procedure] This procedure returns the character used to fill the space between the name and description parts of a menu. item-count menu Returns the number of menu items attached to menu. [Procedure]