MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Curses Library Functions                       menuhook(3CURSES)



NAME
     menuhook,    setiteminit,    iteminit,    setitemterm,
     itemterm,    setmenuinit,    menuinit,    setmenuterm,
     menuterm  -  assign   application-specific   routines   for
     automatic invocation by menus

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

     int setiteminit(MENU *menu, void (*func)(MENU *));


     int setitemterm(MENU *menu, void (*func)(MENU *));


     void itemterm(MENU *menu);


     int setmenuinit(MENU *menu, void (*func)(MENU *));


     void menuinit(MENU *menu);


     int setmenuterm(MENU *menu, void (*func)(MENU *));


     void menuterm(MENU *menu);


DESCRIPTION
     setiteminit() assigns the application-defined function  to
     be called when the menu is posted and just after the current
     item changes. iteminit() returns a pointer to the item ini-
     tialization  routine, if any, called when the menu is posted
     and just after the current item changes.


     setitemterm() assigns an application-defined  function  to
     be  called  when  the  menu  is unposted and just before the
     current item changes. itemterm() returns a pointer  to  the
     termination  function,  if  any,  called  when  the  menu is
     unposted and just before the current item changes.


     setmenuinit() assigns an application-defined  function  to
     be called when the menu is posted and just after the top row
     changes on a posted menu. menuinit() returns a  pointer  to
     the  menu  initialization  routine,  if any, called when the
     menu is posted and just after  the  top  row  changes  on  a
     posted menu.



SunOS 5.11          Last change: 31 Dec 1996                    1






Curses Library Functions                       menuhook(3CURSES)



     setmenuterm() assigns an application-defined  function  to
     be  called when the menu is unposted and just before the top
     row changes on a posted menu. menuterm() returns a  pointer
     to  the  menu  termination  routine, if any, called when the
     menu is unposted and just before the top row  changes  on  a
     posted menu.

RETURN VALUES
     Routines that return pointers always return NUL  on  error.
     Routines that return an integer return one of the following:

     EOK              The routine returned successfully.


     ESYSTEMEROR    System error.


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



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT-Level                     Unsafe                      
    


SEE ALSO
     curses(3CURSES), menus(3CURSES), attributes(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 ™