Two kinds of menus: single- or multi-valued
Menus are of two kinds:
Single-valued menus-
from which the user may select only one item
Multi-valued menus-
from which the user may select one or more items
By default, every menu is single-valued.
To create a multi-valued menu,
you turn off menu option O_ONEVALUE using function
set_menu_opts or menu_opts_off.
These functions are treated in
``Setting and fetching menu options''.
Menus of both types
always have a current item.
With single-valued menus, you determine the item selected by noting the
current item.
With multi-valued menus, you determine all items selected by
applying function item_value to each menu item and
noting the value returned.
Most menu functions pertain to menus whether they are single- or multi-valued.
Function set_item_value, however,
may be used only
with multi-valued menus.
Next topic:
Manipulating an item's select value in a multi-valued menu
Previous topic:
Creating an array of items
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004