MENULIB.LST 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Listing:
  2. 1 (* Release 3.10 *)
  3. 2 (*-------------------------------------------------------------------------*
  4. 3 * *
  5. 4 * MENULIB.DEF - COMMS Toolkit menu support *
  6. 5 * *
  7. 6 * COPYRIGHT (C) 1988..1992 Clarion Software Corporation. *
  8. 7 * All Rights Reserved *
  9. 8 * *
  10. 9 *--------------------------------------------------------------------------*)
  11. 10 DEFINITION MODULE MenuLib;
  12. 11 IMPORT Window;
  13. 12
  14. 13 CONST
  15. 14 MaxOption = 24;
  16. 15
  17. 16 TYPE
  18. 17 MenuOption = RECORD
  19. 18 Name : ARRAY[0..30] OF CHAR;
  20. ***** ^ not supported yet
  21. ***** ^ not supported yet
  22. 19 XPos,YPos,
  23. 20 FirstNonSpace: CARDINAL;
  24. 21 END;
  25. ***** ^ not supported yet
  26. 22 MenuRec = RECORD
  27. 23 Title : ARRAY[0..30] OF CHAR;
  28. ***** ^ not supported yet
  29. ***** ^ not supported yet
  30. 24 Option : ARRAY[0..MaxOption] OF MenuOption;
  31. ***** ^ not supported yet
  32. ***** ^ not supported yet
  33. 25 MenuX,
  34. 26 MenuY,
  35. 27 Width,
  36. 28 NumUsed : CARDINAL;
  37. 29 EscapeOK,
  38. 30 ExitOnChar,
  39. 31 HelpOK,
  40. 32 ExitSideWays,
  41. 33 PageKeysOK : BOOLEAN;
  42. 34 Normal,
  43. 35 Selected,
  44. 36 Highlite,
  45. 37 SHighlite : SHORTCARD;
  46. 38 Selection : CARDINAL;
  47. 39 winptr : Window.WinType;
  48. ***** ^ not supported yet
  49. 40 END;
  50. ***** ^ not supported yet
  51. 41 ColorRec = RECORD
  52. 42 NormFore,
  53. 43 NormBack,
  54. 44 FrameFore,
  55. 45 FrameBack,
  56. 46 HighFore,
  57. 47 HighBack,
  58. 48 SelFore,
  59. 49 SelBack,
  60. 50 HSelFore,
  61. 51 HSelBack : Window.Color;
  62. ***** ^ not supported yet
  63. 52 END;
  64. ***** ^ not supported yet
  65. 53
  66. 54 VAR
  67. 55 MenuColors : ColorRec;
  68. ***** ^ not supported yet
  69. 56
  70. 57 (***************************************************)
  71. 58
  72. 59 PROCEDURE InitMenu (VAR menu:MenuRec;menutitle:ARRAY OF CHAR;MenuX,MenuY,menuwidth:CARDINAL);
  73. ***** ^ not supported yet
  74. 60 PROCEDURE AddOption (VAR menu:MenuRec;menutext:ARRAY OF CHAR);
  75. ***** ^ not supported yet
  76. 61 PROCEDURE DispMenu (VAR menu:MenuRec);
  77. 62 PROCEDURE MenuDrive (VAR menu:MenuRec):INTEGER;
  78. 63 PROCEDURE KillMenu (VAR menu:MenuRec);
  79. 64 PROCEDURE RepaintMenu(VAR menu:MenuRec);
  80. 65
  81. 66 (***************************************************)
  82. 67
  83. 68 END MenuLib.
  84. ***** ^ not supported yet
  85. 69
  86. 15 errors