mitemvalue(3X) mitemvalue(3X)
NAME
mitemvalue - set and get menu item values
SYNOPSIS
##include <>
int setitemvalue(ITEM *item, bool value);
bool itemvalue(const ITEM *item);
DESCRIPTION
If you turn off the menu option ONEVALUE (e.g., with setmenuopts or
menuoptsoff; see menuopts(3X)), the menu becomes multi-valued; that
is, more than one item may simultaneously be selected.
In a multivalued menu, you can used setitemvalue to select the given
menu item (second argument TRUE) or deselect it (second argument
FALSE).
RETURN VALUE
The function setitemvalue returns one of the following:
EOK The routine succeeded.
ESYSTEMEROR
System error occurred (see errno).
EREQUESTDENIED
The menu driver could not process the request.
SEE ALSO
curses(3X), menu(3X).
NOTES
The header file <> automatically includes the header file
<>.
PORTABILITY
These routines emulate the System V menu library. They were not sup-
ported on Version 7 or BSD versions.
AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
Raymond.
mitemvalue(3X)
|