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       int set_item_value(ITEM *item, bool value);
11       bool item_value(const ITEM *item);
12

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

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

NOTES

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

PORTABILITY

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

AUTHORS

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