4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>mitem_value</B> - set and get menu item values
12 <H2>SYNOPSIS</H2><PRE>
13 <B>#include</B> <B><menu.h></B>
14 int set_item_value(ITEM *item, bool value);
15 bool item_value(const ITEM *item);
19 <H2>DESCRIPTION</H2><PRE>
20 If you turn off the menu option <B>O_ONEVALUE</B> (e.g., with
21 <B>set_menu_opts</B> or <B>menu_opts_off</B>; see <B><A HREF="menu_opts.3x.html">menu_opts(3x)</A></B>), the
22 menu becomes multi-valued; that is, more than one item may
23 simultaneously be selected.
25 In a multi_valued menu, you can used <B>set_item_value</B> to
26 select the given menu item (second argument <B>TRUE</B>) or dese-
27 lect it (second argument <B>FALSE</B>).
31 <H2>RETURN VALUE</H2><PRE>
32 The function <B>set_item_value</B> returns one of the following:
34 <B>E_OK</B> The routine succeeded.
37 System error occurred (see <B>errno</B>).
39 <B>E_REQUEST_DENIED</B>
40 The menu driver could not process the request.
44 <H2>SEE ALSO</H2><PRE>
45 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="menu.3x.html">menu(3x)</A></B>.
50 The header file <B><menu.h></B> automatically includes the header
51 file <B><curses.h></B>.
55 <H2>PORTABILITY</H2><PRE>
56 These routines emulate the System V menu library. They
57 were not supported on Version 7 or BSD versions.
62 Juergen Pfeifer. Manual pages and adaptation for new
63 curses by Eric S. Raymond.
78 Man(1) output converted with
79 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>