4 \fBmitem_value\fR - set and get menu item values
6 \fB#include <menu.h>\fR
8 int set_item_value(ITEM *item, bool value);
10 bool item_value(const ITEM *item);
13 If you turn off the menu option \fBO_ONEVALUE\fR (e.g., with
14 \fBset_menu_opts\fR or \fBmenu_opts_off\fR; see \fBmenu_opts\fR(3x)), the menu
15 becomes multi-valued; that is, more than one item may simultaneously be
18 In a multi_valued menu, you can used \fBset_item_value\fR to select the
19 given menu item (second argument \fBTRUE\fR) or deselect it (second argument
22 The function \fBset_item_value\fR returns one of the following:
25 The routine succeeded.
28 System error occurred (see \fBerrno\fR).
30 \fBE_REQUEST_DENIED\fR
31 The menu driver could not process the request.
33 \fBcurses\fR(3X), \fBmenu\fR(3X).
35 The header file \fB<menu.h>\fR automatically includes the header file
38 These routines emulate the System V menu library. They were not supported on
39 Version 7 or BSD versions.
41 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
44 .\"# The following sets edit modes for GNU EMACS