menu_item_opts(S)
menu_item_opts: set_item_opts, item_opts_on, item_opts_off, item_opts --
menus item option routines
Syntax
cc ... -lmenu -lcurses
#include <menu.h>
int set_item_opts(ITEM *item, OPTIONS opts);
int item_opts_on(ITEM *item, OPTIONS opts);
int item_opts_off(ITEM *item, OPTIONS opts);
OPTIONS item_opts(ITEM *item);
Description
set_item_opts-
turn on specified item options and turn off the others
item_opts_on-
turn on specified item options and leave the others unchanged
item_opts_off-
turn off specified item options and leave the others unchanged
item_opts-
return the current item options
set_item_opts(S)
turns on the named options for
item and turns off all other options.
Options are boolean values that can be OR-ed together.
item_opts_on(S)
turns on the named options for item;
no other option is changed.
item_opts_off(S)
turns off the named options for item;
no other option is changed.
item_opts(S)
returns the current options of item.
Item Options:
O_SELECTABLE-
The item can be selected during menu processing.
Return values
Except for
item_opts( ),
these routines return one of the following:
E_OK
|
-
|
The routine returned successfully.
|
E_SYSTEM_ERROR
|
-
|
System error.
|
Warning
The header file menu.h automatically includes the header files
eti.h and curses.h.
Files
/usr/lib/libmenu.a-
the library
See also
curses(S),
menus(S)
Standards conformance
set_item_opts(S),
item_opts_on(S),
item_opts_off(S),
and
item_opts(S)
are not part of any currently supported standard;
they were developed by UNIX System Laboratories, Inc.
and are maintained by The SCO Group.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003