DEMO1.LST 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. Listing:
  2. 1 MODULE Demo1;
  3. 2 (*
  4. 3 * REPERTOIRE
  5. 4 * Release 1.6
  6. 5 * By Charles Bradford and Cole Brecheen
  7. 6 * (c) Copyright 1985-1990 PMI
  8. 7 * Green Bay, WI
  9. 8 * All rights reserved
  10. 9 * (414) 468-6040
  11. 10 *)
  12. 11
  13. 12 IMPORT ControlUtils;
  14. 13 IMPORT DspFiles;
  15. 14 IMPORT ErrorManager;
  16. 15 IMPORT FramePainter;
  17. 16 IMPORT InputManager;
  18. 17 IMPORT NdxBones;
  19. 18 IMPORT NdxFiles;
  20. 19 IMPORT NdxTypes;
  21. 20 IMPORT PosUtils;
  22. 21 IMPORT Scrn2Ndx;
  23. 22 IMPORT ScrnTypes;
  24. 23 IMPORT ScrnUtl1;
  25. 24 IMPORT ScrnUtl2;
  26. 25 IMPORT VWindows;
  27. 26 IMPORT WindowPrims;
  28. 27
  29. 28 VAR
  30. 29 NdxFile: NdxTypes.NdxFileType;
  31. ***** ^ not supported yet
  32. 30 FrameVar: ScrnTypes.DisplayFrame;
  33. ***** ^ not supported yet
  34. 31 ScreenFile: ScrnTypes.DisplayFile;
  35. ***** ^ not supported yet
  36. 32 NextFrame: ScrnTypes.AFrameName;
  37. ***** ^ not supported yet
  38. 33 RecName: ARRAY [0..19] OF CHAR;
  39. ***** ^ not supported yet
  40. ***** ^ not supported yet
  41. 34 SavedHeight: CARDINAL;
  42. 35
  43. 36 BEGIN
  44. 37 SavedHeight := VWindows.GetCursorHeight(
  45. ***** ^ not supported yet
  46. ***** ^ not supported yet
  47. 38 VWindows.CurrentWindow );
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. 39 IF NOT NdxBones.OpenNdxFile( NdxFile, 'demo1.ndx' ) THEN
  51. ***** ^ not supported yet
  52. ***** ^ not supported yet
  53. ***** ^ not supported yet
  54. ***** ^ not supported yet
  55. 40 (*If the file doesn't exist, create it.*)
  56. 41 NdxFiles.CreateNdxFile( NdxFile, 'demo1.ndx',
  57. ***** ^ not supported yet
  58. ***** ^ not supported yet
  59. ***** ^ not supported yet
  60. ***** ^ not supported yet
  61. 42 'RecName, age, job' );
  62. ***** ^ not supported yet
  63. 43 END;
  64. 44 IF NOT DspFiles.OpenDisplayFile( ScreenFile, 'demo1.dsp' ) THEN
  65. ***** ^ not supported yet
  66. ***** ^ not supported yet
  67. ***** ^ not supported yet
  68. ***** ^ not supported yet
  69. 45 ErrorManager.WARN( 'Could not open DEMO1.DSP' );
  70. ***** ^ not supported yet
  71. ***** ^ not supported yet
  72. ***** ^ not supported yet
  73. 46 RETURN;
  74. ***** ^ bad RETURN
  75. 47 END;
  76. 48 ScrnTypes.InitDisplayFrame( FrameVar, VWindows.CurrentWindow );
  77. ***** ^ not supported yet
  78. ***** ^ not supported yet
  79. ***** ^ not supported yet
  80. ***** ^ not supported yet
  81. ***** ^ not supported yet
  82. 49 REPEAT
  83. 50 NextFrame := 'NameScrn';
  84. ***** ^ not supported yet
  85. ***** ^ not supported yet
  86. 51 ControlUtils.ReadShowAndCntrl( ScreenFile, FrameVar, NextFrame );
  87. ***** ^ not supported yet
  88. ***** ^ not supported yet
  89. ***** ^ not supported yet
  90. ***** ^ not supported yet
  91. ***** ^ not supported yet
  92. 52 (*This will always display the screen that says
  93. 53 "Enter a record name."*)
  94. 54 IF NOT PosUtils.Equal( NextFrame, ScrnTypes.ProgramExit ) THEN
  95. ***** ^ not supported yet
  96. ***** ^ not supported yet
  97. ***** ^ not supported yet
  98. ***** ^ not supported yet
  99. ***** ^ not supported yet
  100. 55 ScrnUtl1.GetFieldText( FrameVar,
  101. ***** ^ not supported yet
  102. ***** ^ not supported yet
  103. ***** ^ not supported yet
  104. 56 FrameVar^.CurrentField, RecName );
  105. ***** ^ not supported yet
  106. ***** ^ not supported yet
  107. ***** ^ not supported yet
  108. 57 DspFiles.ReadDisplayFrame( ScreenFile, FrameVar, 'EntryScreen' );
  109. ***** ^ not supported yet
  110. ***** ^ not supported yet
  111. ***** ^ not supported yet
  112. ***** ^ not supported yet
  113. ***** ^ not supported yet
  114. 58 IF NOT Scrn2Ndx.FillScr( NdxFile, FrameVar, RecName, '') THEN
  115. ***** ^ not supported yet
  116. ***** ^ not supported yet
  117. ***** ^ not supported yet
  118. ***** ^ not supported yet
  119. ***** ^ not supported yet
  120. ***** ^ not supported yet
  121. 59 ControlUtils.ChangeField( FrameVar, RecName, 'RecName', TRUE );
  122. ***** ^ not supported yet
  123. ***** ^ not supported yet
  124. ***** ^ not supported yet
  125. ***** ^ not supported yet
  126. ***** ^ not supported yet
  127. ***** ^ not supported yet
  128. 60 END;
  129. 61 FramePainter.ShowDisplayFrame( FrameVar, 0, 0, 0, 0 );
  130. ***** ^ not supported yet
  131. ***** ^ not supported yet
  132. ***** ^ not supported yet
  133. ***** ^ not supported yet
  134. 62 InputManager.ControlFrame( FrameVar, 0, '', FALSE, NextFrame );
  135. ***** ^ not supported yet
  136. ***** ^ not supported yet
  137. ***** ^ not supported yet
  138. ***** ^ not supported yet
  139. 63 IF PosUtils.Equal( NextFrame, FrameVar^.normlnext ) THEN
  140. ***** ^ not supported yet
  141. ***** ^ not supported yet
  142. ***** ^ not supported yet
  143. ***** ^ not supported yet
  144. ***** ^ not supported yet
  145. 64 IF NOT Scrn2Ndx.PutScrRec(NdxFile, FrameVar, RecName,'')
  146. ***** ^ not supported yet
  147. ***** ^ not supported yet
  148. ***** ^ not supported yet
  149. ***** ^ not supported yet
  150. ***** ^ not supported yet
  151. ***** ^ not supported yet
  152. 65 THEN HALT(); END;
  153. ***** ^ undeclared identifier
  154. ***** ^ not supported yet
  155. 66 IF NOT NdxFiles.WriteRecord( NdxFile, RecName )
  156. ***** ^ not supported yet
  157. ***** ^ not supported yet
  158. ***** ^ not supported yet
  159. ***** ^ not supported yet
  160. 67 THEN HALT(); END;
  161. ***** ^ undeclared identifier
  162. ***** ^ not supported yet
  163. 68 END;
  164. 69 END;
  165. 70 UNTIL PosUtils.Equal( NextFrame, ScrnTypes.ProgramExit );
  166. ***** ^ not supported yet
  167. ***** ^ not supported yet
  168. ***** ^ not supported yet
  169. ***** ^ not supported yet
  170. ***** ^ not supported yet
  171. 71 ScrnUtl2.CloseDisplayFrame( FrameVar );
  172. ***** ^ not supported yet
  173. ***** ^ not supported yet
  174. ***** ^ not supported yet
  175. 72 NdxFiles.CloseNdxFile( NdxFile );
  176. ***** ^ not supported yet
  177. ***** ^ not supported yet
  178. ***** ^ not supported yet
  179. 73 VWindows.ClearPart( VWindows.CurrentWindow, 0, 0,
  180. ***** ^ not supported yet
  181. ***** ^ not supported yet
  182. ***** ^ not supported yet
  183. ***** ^ not supported yet
  184. 74 VWindows.EndCol(VWindows.CurrentWindow),
  185. ***** ^ not supported yet
  186. ***** ^ not supported yet
  187. ***** ^ not supported yet
  188. ***** ^ not supported yet
  189. 75 VWindows.EndRow(VWindows.CurrentWindow) );
  190. ***** ^ not supported yet
  191. ***** ^ not supported yet
  192. ***** ^ not supported yet
  193. ***** ^ not supported yet
  194. 76 VWindows.SetCursorHeight( VWindows.CurrentWindow, SavedHeight );
  195. ***** ^ not supported yet
  196. ***** ^ not supported yet
  197. ***** ^ not supported yet
  198. ***** ^ not supported yet
  199. ***** ^ not supported yet
  200. 77 END Demo1.
  201. 122 errors