MyWebUniversity.com Home Page
 



Darwin Mac OS X man pages main menu
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)
Darwin Mac OS X man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™