home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / psion / opp16f_zip / INCLUDE / SDK / MENUBAR.OPH < prev    next >
Encoding:
Text File  |  1995-12-21  |  879 b   |  62 lines

  1. #define MENUBAR_OPH
  2.  
  3. #ifndef BWIN_OPH
  4. #include <sdk\bwin>
  5. #endif
  6.  
  7. #ifndef PULLDOWN_OPH
  8. #include <sdk\pulldown>
  9. #endif
  10.  
  11. /* Property of menutab */
  12.  
  13. STRUCT PRS_MENUTAB
  14.     txt%
  15.     xoff%
  16. ENDS
  17.  
  18. STRUCT PR_MENUTAB
  19.     root#(SIZEOF(PRS_ROOT))
  20.     win#(SIZEOF(PRS_WIN))
  21.     menutab#(SIZEOF(PRS_MENUTAB))
  22. ENDS
  23.  
  24. /* Constants for menubar */
  25.  
  26. #define MENUBAR_LEFT_SHOULD 4
  27. #define MENUBAR_RIGHT_SHOULD 4
  28. #define MENUBAR_MAX_MENU 15
  29. #define MENUBAR_MIN_GAP 3
  30. #define MENUBAR_MAX_GAP 10
  31. #define MENUBAR_3b_TAIL_WIDTH 18
  32.  
  33. /* Types for menubar */
  34.  
  35. STRUCT MENUBAR_ITEM
  36.     menu_id%
  37.     mb_txt#(1)
  38. ENDS
  39.  
  40. STRUCT MENUBAR
  41.     count#
  42. ENDS
  43.  
  44. /* Property of menubar */
  45.  
  46. STRUCT PRS_MENUBAR
  47.     tab%
  48.     menu%
  49.     mb%
  50.     num#
  51.     xoff#
  52.     toff#
  53.     asc#
  54.     pos%(MENUBAR_MAX_MENU+1)
  55. ENDS
  56.  
  57. STRUCT PR_MENUBAR
  58.     root#(SIZEOF(PRS_ROOT))
  59.     win#(SIZEOF(PRS_WIN))
  60.     menubar#(SIZEOF(PRS_MENUBAR))
  61. ENDS
  62.