1mitem_value(3X)                                                mitem_value(3X)
2
3
4

NAME

6       set_item_value, item_value - set and get menu item values
7

SYNOPSIS

9       #include <menu.h>
10
11       int set_item_value(ITEM *item, bool value);
12       bool item_value(const ITEM *item);
13

DESCRIPTION

15       If you turn off the menu option O_ONEVALUE (e.g., with set_menu_opts or
16       menu_opts_off; see menu_opts(3X)), the menu becomes multi-valued;  that
17       is, more than one item may simultaneously be selected.
18
19       In a multi_valued menu, you can used set_item_value to select the given
20       menu item (second  argument  TRUE)  or  deselect  it  (second  argument
21       FALSE).
22

RETURN VALUE

24       The function set_item_value returns one of the following:
25
26       E_OK The routine succeeded.
27
28       E_SYSTEM_ERROR
29            System error occurred (see errno(3)).
30
31       E_REQUEST_DENIED
32            The menu driver could not process the request.
33

SEE ALSO

35       curses(3X), menu(3X).
36

NOTES

38       The  header  file  <menu.h>  automatically  includes  the  header  file
39       <curses.h>.
40

PORTABILITY

42       These routines emulate the System V menu library.  They were  not  sup‐
43       ported on Version 7 or BSD versions.
44

AUTHORS

46       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
47       Raymond.
48
49
50
51                                                               mitem_value(3X)
Impressum