MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Curses Library Functions                 menuitemvalue(3CURSES)



NAME
     menuitemvalue, setitemvalue, itemvalue -  set  and  get
     menus item values

SYNOPSIS
     cc [ flag... ] file... -lmenu  -lcurses  [ library... ]
     #include 

     int setitemvalue(ITEM *item, int bool);


     int itemvalue(ITEM *item);


DESCRIPTION
     Unlike single-valued menus, multi-valued  menus  enable  the
     end-user   to   select  one  or  more  items  from  a  menu.
     setitemvalue() sets the selected value of the item -  TRUE
     (selected)  or FALSE (not selected). setitemvalue() may be
     used only with multi-valued menus. To  make  a  menu  multi-
     valued, use setmenuopts or menuoptsoff() to turn off the
     option ONEVALUE. (See menuopts(3CURSES)).


     itemvalue() returns the select value of item,  either  TRUE
     (selected) or FALSE (unselected).

RETURN VALUES
     setitemvalue() returns one of the following:

     EOK                The routine returned successfully.


     ESYSTEMEROR      System error.


     EREQUESTDENIED    The menu driver could  not  process  the
                         request.


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:












SunOS 5.11          Last change: 31 Dec 1996                    1






Curses Library Functions                 menuitemvalue(3CURSES)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT-Level                     Unsafe                      
    


SEE ALSO
     curses(3CURSES), menus(3CURSES), menuopts(3CURSES),  attri-
     butes(5)

NOTES
     The  header    automatically  includes  the  headers
      and .









































SunOS 5.11          Last change: 31 Dec 1996                    2



OpenSolaris man pages main menu

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