home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / PC_V11_A.LZH / INCLUDE / MENUBIND.H < prev    next >
Text File  |  1992-08-19  |  924b  |  27 lines

  1. /* Structure for passing menu data */
  2. typedef struct _menu
  3. {
  4.    OBJECT *mn_tree;        /* Object tree of the menu  */
  5.    WORD   mn_menu;        /* Parent of the menu items */
  6.    WORD   mn_item;        /* Starting menu item       */
  7.    WORD   mn_scroll;        /* scroll flag for the menu */
  8.    WORD   mn_keystate;        /* CTRL, ALT, SHIFT Keystate*/
  9. }MENU;
  10.  
  11.  
  12. /* Structure for the Menu Settings */
  13. typedef struct _mn_set
  14. {
  15.    LONG   Display;        /* The display delay      */
  16.    LONG   Drag;            /* The drag delay         */
  17.    LONG   Delay;        /* The Arrow Delay        */
  18.    LONG   Speed;        /* The scroll speed delay */
  19.    WORD   Height;        /* The menu scroll height */
  20. }MN_SET;
  21.  
  22.  
  23. WORD  menu_popup( MENU *Menu, WORD xpos, WORD ypos, MENU *MData );
  24. WORD  menu_attach( WORD flag, OBJECT *tree, WORD item, MENU *Menu );
  25. WORD  menu_istart( WORD flag, OBJECT *tree, WORD menu, WORD item );
  26. WORD  menu_settings( WORD flag, MN_SET *Values );
  27.