USEROPS.LST 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285
  1. Listing:
  2. 1 IMPLEMENTATION MODULE UserOps;
  3. 2 (*
  4. 3 * REPERTOIRE
  5. 4 * Release 1.6
  6. 5 * By Charles Bradford and Cole Brecheen
  7. 6 * (c) Copyright 1985-1992 PMI
  8. 7 * Green Bay, Wisconsin
  9. 8 * All rights reserved
  10. 9 * (414) 468-6040
  11. 10 *
  12. 11 * $Header: D:/logfiles/mods/userops.mov 1.7 10 Mar 1991 15:34:08 coleb $
  13. 12 *
  14. 13 *)
  15. 14
  16. 15
  17. 16 (*EntryDiag:
  18. 17 IMPORT Diagnostics;
  19. 18 :EntryDiag*)
  20. 19
  21. 20 IMPORT BigSets;
  22. 21 IMPORT ByteFiddler;
  23. 22 IMPORT ControlUtils;
  24. 23 IMPORT DateFunctions;
  25. 24 IMPORT Editor;
  26. 25 IMPORT ErrorManager;
  27. 26 IMPORT FieldTypes;
  28. 27 IMPORT FramePainter;
  29. 28 IMPORT GenLists;
  30. 29 IMPORT Hash;
  31. 30 IMPORT InputManager;
  32. 31 IMPORT KbdInput;
  33. 32 IMPORT Key;
  34. 33 IMPORT ListUtils;
  35. 34 IMPORT LowLevel;
  36. 35 IMPORT M2Strings;
  37. 36 IMPORT MsgBox2;
  38. 37 IMPORT Numbers;
  39. 38 IMPORT NumInput;
  40. 39 IMPORT NumTypes;
  41. 40 IMPORT PosUtils;
  42. 41 IMPORT ScrnTypes;
  43. 42 IMPORT ScrnUtl1;
  44. 43 IMPORT StrConv;
  45. 44 IMPORT StrEdit;
  46. 45 IMPORT StrInput;
  47. 46 IMPORT SYSTEM;
  48. 47 IMPORT VEditor;
  49. 48 IMPORT VStorage;
  50. 49 IMPORT VWindows;
  51. 50
  52. 51 VAR
  53. 52 Initialized : BOOLEAN;
  54. 53
  55. 54 PROCEDURE ShowMemory( TheFrame: ScrnTypes.DisplayFrame );
  56. ***** ^ not supported yet
  57. 55 VAR
  58. 56 tmpstr: ARRAY [0..31] OF CHAR;
  59. ***** ^ not supported yet
  60. ***** ^ not supported yet
  61. 57 msgstr: ARRAY [0..127] OF CHAR;
  62. ***** ^ not supported yet
  63. ***** ^ not supported yet
  64. 58 BEGIN
  65. 59 msgstr[0] := 0C;
  66. ***** ^ not supported yet
  67. ***** ^ not supported yet
  68. 60 IF VStorage.UsingEms() THEN
  69. ***** ^ not supported yet
  70. ***** ^ not supported yet
  71. ***** ^ not supported yet
  72. 61 StrEdit.Append( msgstr,
  73. ***** ^ not supported yet
  74. ***** ^ not supported yet
  75. ***** ^ not supported yet
  76. 62 'Expanded memory now available (in bytes): ' );
  77. ***** ^ not supported yet
  78. 63 StrConv.LongIntegerToStr( VStorage.AvailMem(), 0, tmpstr );
  79. ***** ^ not supported yet
  80. ***** ^ not supported yet
  81. ***** ^ not supported yet
  82. ***** ^ not supported yet
  83. ***** ^ not supported yet
  84. ***** ^ not supported yet
  85. 64 StrEdit.Append( msgstr, tmpstr );
  86. ***** ^ not supported yet
  87. ***** ^ not supported yet
  88. ***** ^ not supported yet
  89. ***** ^ not supported yet
  90. 65 StrEdit.Append( msgstr, '. ' );
  91. ***** ^ not supported yet
  92. ***** ^ not supported yet
  93. ***** ^ not supported yet
  94. ***** ^ not supported yet
  95. 66 ELSE
  96. 67 msgstr := 'Expanded memory not in use. ';
  97. ***** ^ not supported yet
  98. ***** ^ not supported yet
  99. 68 END;
  100. 69 StrEdit.Append(msgstr, 'Stack available: ' );
  101. ***** ^ not supported yet
  102. ***** ^ not supported yet
  103. ***** ^ not supported yet
  104. ***** ^ not supported yet
  105. 70 StrConv.CardinalToStr(LowLevel.ofs(SYSTEM.ADR(msgstr))-127, 0, tmpstr);
  106. ***** ^ not supported yet
  107. ***** ^ not supported yet
  108. ***** ^ not supported yet
  109. ***** ^ not supported yet
  110. ***** ^ not supported yet
  111. ***** ^ not supported yet
  112. ***** ^ not supported yet
  113. ***** ^ not supported yet
  114. 71 StrEdit.Append(msgstr, tmpstr);
  115. ***** ^ not supported yet
  116. ***** ^ not supported yet
  117. ***** ^ not supported yet
  118. ***** ^ not supported yet
  119. 72 MsgBox2.StrMsgBoxExterior( TheFrame, VWindows.NE, msgstr );
  120. ***** ^ not supported yet
  121. ***** ^ not supported yet
  122. ***** ^ not supported yet
  123. ***** ^ not supported yet
  124. ***** ^ not supported yet
  125. ***** ^ not supported yet
  126. 73 END ShowMemory;
  127. ***** ^ not supported yet
  128. 74
  129. 75
  130. 76 CONST
  131. 77 OldFunction = "Non-numeric frame name used with old function";
  132. ***** ^ not supported yet
  133. 78 ExitMessage =
  134. 79 'You pressed the function key that terminates the program. Please confirm.';
  135. ***** ^ not supported yet
  136. 80
  137. 81
  138. 82 PROCEDURE BetweenLongs( TheTxt: ARRAY OF CHAR; LoLong, HiLong: LONGINT) :
  139. ***** ^ not supported yet
  140. 83 BOOLEAN;
  141. 84 VAR
  142. 85 lvalue: LONGINT;
  143. 86 BEGIN
  144. 87 IF NOT StrConv.StrToLongInteger( TheTxt, 0, lvalue) THEN
  145. ***** ^ not supported yet
  146. ***** ^ not supported yet
  147. ***** ^ not supported yet
  148. ***** ^ not supported yet
  149. 88 (*StrToLongInteger skips over leading non-numeric
  150. 89 characters.*)
  151. 90 RETURN FALSE;
  152. 91 END;
  153. 92 RETURN (lvalue >= LoLong) AND (lvalue <= HiLong);
  154. 93 END BetweenLongs;
  155. ***** ^ not supported yet
  156. 94
  157. 95
  158. 96 PROCEDURE BetweenReals( TheTxt: ARRAY OF CHAR; LoReal, HiReal:
  159. ***** ^ not supported yet
  160. 97 NumTypes.Real8) : BOOLEAN;
  161. ***** ^ not supported yet
  162. 98 VAR
  163. 99 rvalue: NumTypes.Real8;
  164. ***** ^ not supported yet
  165. 100 BEGIN
  166. 101 IF NOT StrConv.StrToReal( TheTxt, 0, rvalue) THEN
  167. ***** ^ not supported yet
  168. ***** ^ not supported yet
  169. ***** ^ not supported yet
  170. ***** ^ not supported yet
  171. 102 (*StrToReal skips over leading non-numeric
  172. 103 characters.*)
  173. 104 RETURN FALSE;
  174. 105 END;
  175. 106 RETURN (rvalue >= LoReal) AND (rvalue <= HiReal)
  176. ***** ^ not supported yet
  177. ***** ^ not supported yet
  178. ***** ^ not supported yet
  179. ***** ^ not supported yet
  180. 107 END BetweenReals;
  181. ***** ^ not supported yet
  182. 108
  183. 109
  184. 110 PROCEDURE DefaultKeyHandler( FrameRec : ScrnTypes.DisplayFrame;
  185. ***** ^ not supported yet
  186. 111 VAR LastKey: CARDINAL; VAR NextFrame: ScrnTypes.AFrameName
  187. ***** ^ not supported yet
  188. 112 );
  189. 113 VAR
  190. 114 SavedKeyValue, keyhit: CARDINAL;
  191. 115 FieldRec: ScrnTypes.InputFieldRecord;
  192. ***** ^ not supported yet
  193. 116 BlankFrame : BOOLEAN;
  194. 117 HelpFrame: ScrnTypes.AFrameName;
  195. ***** ^ not supported yet
  196. 118 BEGIN
  197. 119 StrEdit.AssignStr( ScrnTypes.ContinueInput, NextFrame );
  198. ***** ^ not supported yet
  199. ***** ^ not supported yet
  200. ***** ^ not supported yet
  201. ***** ^ not supported yet
  202. ***** ^ not supported yet
  203. 120 BlankFrame := ScrnUtl1.FieldGroupTotal( FrameRec ) = 0;
  204. ***** ^ not supported yet
  205. ***** ^ not supported yet
  206. ***** ^ not supported yet
  207. 121 IF NOT BlankFrame THEN
  208. 122 ScrnUtl1.GetFieldRec( FrameRec, FrameRec^.CurrentField, FieldRec );
  209. ***** ^ not supported yet
  210. ***** ^ not supported yet
  211. ***** ^ not supported yet
  212. ***** ^ not supported yet
  213. ***** ^ not supported yet
  214. ***** ^ not supported yet
  215. 123 END;
  216. 124 IF LastKey = HelpKey THEN
  217. ***** ^ undeclared identifier
  218. 125 IF (NOT BlankFrame) AND
  219. 126 (M2Strings.Length(FieldRec.HelpFrame) > 0) THEN
  220. ***** ^ not supported yet
  221. ***** ^ not supported yet
  222. ***** ^ not supported yet
  223. ***** ^ not supported yet
  224. 127 M2Strings.Assign( FieldRec.HelpFrame, HelpFrame );
  225. ***** ^ not supported yet
  226. ***** ^ not supported yet
  227. ***** ^ not supported yet
  228. ***** ^ not supported yet
  229. ***** ^ not supported yet
  230. 128 ControlUtils.FrameSeq2( FrameRec^.FromFile,
  231. ***** ^ not supported yet
  232. ***** ^ not supported yet
  233. ***** ^ not supported yet
  234. ***** ^ not supported yet
  235. 129 FrameRec^.ThisFrame, HelpFrame );
  236. ***** ^ not supported yet
  237. ***** ^ not supported yet
  238. ***** ^ not supported yet
  239. 130 ELSIF M2Strings.Length(FrameRec^.HelpFrame) > 0 THEN
  240. ***** ^ not supported yet
  241. ***** ^ not supported yet
  242. ***** ^ not supported yet
  243. ***** ^ not supported yet
  244. 131 M2Strings.Assign( FrameRec^.HelpFrame, HelpFrame );
  245. ***** ^ not supported yet
  246. ***** ^ not supported yet
  247. ***** ^ not supported yet
  248. ***** ^ not supported yet
  249. ***** ^ not supported yet
  250. 132 ControlUtils.FrameSeq2( FrameRec^.FromFile,
  251. ***** ^ not supported yet
  252. ***** ^ not supported yet
  253. ***** ^ not supported yet
  254. ***** ^ not supported yet
  255. 133 FrameRec^.ThisFrame, HelpFrame );
  256. ***** ^ not supported yet
  257. ***** ^ not supported yet
  258. ***** ^ not supported yet
  259. 134 ELSIF NOT ListUtils.IsBlankList(FrameRec^.HelpList) THEN
  260. ***** ^ not supported yet
  261. ***** ^ not supported yet
  262. ***** ^ not supported yet
  263. ***** ^ not supported yet
  264. 135 MsgBox2.LstMsgBoxExterior( FrameRec, VWindows.NW,
  265. ***** ^ not supported yet
  266. ***** ^ not supported yet
  267. ***** ^ not supported yet
  268. ***** ^ not supported yet
  269. ***** ^ not supported yet
  270. 136 FrameRec^.HelpList );
  271. ***** ^ not supported yet
  272. ***** ^ not supported yet
  273. 137 END;
  274. 138 InputManager.LookAlive( FrameRec );
  275. ***** ^ not supported yet
  276. ***** ^ not supported yet
  277. ***** ^ not supported yet
  278. 139 (* Restores pointer bar, correct prompt, highlighting,
  279. 140 etc., in case the input focus went somewhere else
  280. 141 during the help sequence. *)
  281. 142 LastKey := 0;
  282. 143 (*We don't want ControlFrame to do anything else with
  283. 144 this keystroke. We just want it to keep going.*)
  284. 145 ELSIF LastKey = TimeKey THEN
  285. ***** ^ undeclared identifier
  286. 146 SavedKeyValue := LastKey;
  287. 147 TimeKey := 65535;
  288. ***** ^ undeclared identifier
  289. 148 (*Disable MemoryKey while in the MemAvail box itself.*)
  290. 149 ShowMemory( FrameRec );
  291. ***** ^ not supported yet
  292. ***** ^ not supported yet
  293. 150 TimeKey := SavedKeyValue;
  294. ***** ^ undeclared identifier
  295. 151 LastKey := 0;
  296. 152 ELSIF LastKey = BackupKey THEN
  297. ***** ^ undeclared identifier
  298. 153 M2Strings.Assign( FrameRec^.parent, NextFrame );
  299. ***** ^ not supported yet
  300. ***** ^ not supported yet
  301. ***** ^ not supported yet
  302. ***** ^ not supported yet
  303. ***** ^ not supported yet
  304. 154 ELSIF LastKey = SubmitKey THEN
  305. ***** ^ undeclared identifier
  306. 155 IF NOT BlankFrame THEN
  307. 156 IF FieldRec.typ = ScrnTypes.GotoCode THEN
  308. ***** ^ not supported yet
  309. ***** ^ not supported yet
  310. ***** ^ not supported yet
  311. ***** ^ not supported yet
  312. 157 M2Strings.Assign( FieldRec.ReturnVal, NextFrame );
  313. ***** ^ not supported yet
  314. ***** ^ not supported yet
  315. ***** ^ not supported yet
  316. ***** ^ not supported yet
  317. ***** ^ not supported yet
  318. 158 ELSE
  319. 159 M2Strings.Assign( FrameRec^.normlnext, NextFrame );
  320. ***** ^ not supported yet
  321. ***** ^ not supported yet
  322. ***** ^ not supported yet
  323. ***** ^ not supported yet
  324. ***** ^ not supported yet
  325. 160 END;
  326. 161 ELSE
  327. 162 M2Strings.Assign( FrameRec^.normlnext, NextFrame );
  328. ***** ^ not supported yet
  329. ***** ^ not supported yet
  330. ***** ^ not supported yet
  331. ***** ^ not supported yet
  332. ***** ^ not supported yet
  333. 163 END;
  334. 164 ELSIF LastKey = ExitKey THEN
  335. ***** ^ undeclared identifier
  336. 165 SavedKeyValue := ExitKey;
  337. ***** ^ undeclared identifier
  338. 166 ExitKey := 65535;
  339. ***** ^ undeclared identifier
  340. 167 (* Disables ExitKey while user is in the ExitKey
  341. 168 message box itself. *)
  342. 169 IF MsgBox2.MsgOkay( FrameRec, VWindows.SW, ExitMessage ) THEN
  343. ***** ^ not supported yet
  344. ***** ^ not supported yet
  345. ***** ^ not supported yet
  346. ***** ^ not supported yet
  347. ***** ^ not supported yet
  348. ***** ^ not supported yet
  349. 170 ErrorManager.CallHalt('');
  350. ***** ^ not supported yet
  351. ***** ^ not supported yet
  352. ***** ^ not supported yet
  353. 171 (*
  354. 172 Logitech users
  355. 173 may want to do
  356. 174 this instead of
  357. 175 StraitToDOS if
  358. 176 it's important
  359. 177 that Logitech
  360. 178 TermProcs get
  361. 179 executed before
  362. 180 returning to DOS.
  363. 181 ErrorManager.DoTermProcs();
  364. 182 RTSMain.Terminate(RTSMain.Normal);
  365. 183 *)
  366. 184 END;
  367. 185 InputManager.LookAlive( FrameRec );
  368. ***** ^ not supported yet
  369. ***** ^ not supported yet
  370. ***** ^ not supported yet
  371. 186 ExitKey := SavedKeyValue;
  372. ***** ^ undeclared identifier
  373. 187 LastKey := 0;
  374. 188 END;
  375. 189 END DefaultKeyHandler;
  376. ***** ^ not supported yet
  377. 190
  378. 191
  379. 192 PROCEDURE DefaultFieldHandler( FrameRec :
  380. 193 ScrnTypes.DisplayFrame; col1, row1: CARDINAL; VAR LastKey :
  381. ***** ^ not supported yet
  382. 194 CARDINAL; VAR NextFrame: ScrnTypes.AFrameName );
  383. ***** ^ not supported yet
  384. 195 VAR
  385. 196 ChangeCheck1, ChangeCheck2, ChangeCheck3, Check1, Check2,
  386. 197 Check3, keyhit, CursorPos, width, spot: CARDINAL;
  387. 198 ok, done, InDecimals: BOOLEAN;
  388. 199 LocalNextFrame: ScrnTypes.AFrameName;
  389. ***** ^ not supported yet
  390. 200 TmpLegalKeys, InterestingKeys: KbdInput.KeyNumSet;
  391. ***** ^ not supported yet
  392. 201 FieldRec : ScrnTypes.InputFieldRecord;
  393. ***** ^ not supported yet
  394. 202 ImageRec : ScrnTypes.ImageElement;
  395. ***** ^ not supported yet
  396. 203 TheList : GenLists.GenList;
  397. ***** ^ not supported yet
  398. 204 date : DateFunctions.Date;
  399. ***** ^ not supported yet
  400. 205 EdRec : VEditor.AnEdControlRec;
  401. ***** ^ not supported yet
  402. 206 minusOK : BOOLEAN;
  403. 207
  404. 208 BEGIN
  405. 209 ScrnUtl1.GetFieldRec( FrameRec, FrameRec^.CurrentField, FieldRec );
  406. ***** ^ not supported yet
  407. ***** ^ not supported yet
  408. ***** ^ not supported yet
  409. ***** ^ not supported yet
  410. ***** ^ not supported yet
  411. ***** ^ not supported yet
  412. 210 ScrnUtl1.GetFieldImageRec( FrameRec, FrameRec^.CurrentField, ImageRec );
  413. ***** ^ not supported yet
  414. ***** ^ not supported yet
  415. ***** ^ not supported yet
  416. ***** ^ not supported yet
  417. ***** ^ not supported yet
  418. ***** ^ not supported yet
  419. 211 Hash.Compute( ImageRec.text, ChangeCheck1, ChangeCheck2, ChangeCheck3 );
  420. ***** ^ not supported yet
  421. ***** ^ not supported yet
  422. ***** ^ not supported yet
  423. ***** ^ not supported yet
  424. ***** ^ not supported yet
  425. 212 width := M2Strings.Length(ImageRec.text);
  426. ***** ^ not supported yet
  427. ***** ^ not supported yet
  428. ***** ^ not supported yet
  429. ***** ^ not supported yet
  430. 213 InDecimals := FALSE;
  431. 214 CursorPos := 0;
  432. 215 BigSets.SetUnion( FieldExitKeySet, FunctKeySet, InterestingKeys );
  433. ***** ^ not supported yet
  434. ***** ^ not supported yet
  435. ***** ^ undeclared identifier
  436. ***** ^ undeclared identifier
  437. ***** ^ not supported yet
  438. 216 ScrnUtl1.SetPointerBarColors( FrameRec );
  439. ***** ^ not supported yet
  440. ***** ^ not supported yet
  441. ***** ^ not supported yet
  442. 217
  443. 218 IF FieldRec.typ = FieldTypes.TypeCode( 'STRING' ) THEN
  444. ***** ^ not supported yet
  445. ***** ^ not supported yet
  446. ***** ^ not supported yet
  447. ***** ^ not supported yet
  448. ***** ^ not supported yet
  449. 219 TmpLegalKeys := StringKeySet;
  450. ***** ^ not supported yet
  451. ***** ^ undeclared identifier
  452. 220 (* If you want to change which keys are legal in
  453. 221 particular kinds of string fields, insert code here
  454. 222 that looks for the field type or the name of the field you're
  455. 223 interested in changing, and modify TmpLegalKeys with
  456. 224 routines from BigSets if you find it. *)
  457. 225 REPEAT
  458. 226 ScrnUtl1.SetPointerBarColors( FrameRec );
  459. ***** ^ not supported yet
  460. ***** ^ not supported yet
  461. ***** ^ not supported yet
  462. 227 StrInput.ReadWithEdits( FrameRec^.WindowHandle,
  463. ***** ^ not supported yet
  464. ***** ^ not supported yet
  465. ***** ^ not supported yet
  466. ***** ^ not supported yet
  467. 228 ImageRec.text, col1, row1, width, CursorPos,
  468. ***** ^ not supported yet
  469. ***** ^ not supported yet
  470. 229 InsertMode, TRUE, LastKey, TmpLegalKeys,
  471. ***** ^ undeclared identifier
  472. ***** ^ not supported yet
  473. 230 InterestingKeys );
  474. ***** ^ not supported yet
  475. 231
  476. 232 (* This is where you insert field validation code.
  477. 233 It's also where you put code to update a frame
  478. 234 dynamically as the user completes certain fields--
  479. 235 use ChangeField, RedrawField, or RedrawArea to do
  480. 236 the latter.*)
  481. 237
  482. 238 ScrnUtl1.PutFieldImageRec( ImageRec, FrameRec,
  483. ***** ^ not supported yet
  484. ***** ^ not supported yet
  485. ***** ^ not supported yet
  486. ***** ^ not supported yet
  487. 239 FrameRec^.CurrentField );
  488. ***** ^ not supported yet
  489. ***** ^ not supported yet
  490. 240 (*Updates ImageList so that present state of the
  491. 241 string will be visible in TheKeyHandler.*)
  492. 242 TheKeyHandler( FrameRec, LastKey, LocalNextFrame );
  493. ***** ^ undeclared identifier
  494. ***** ^ not supported yet
  495. ***** ^ not supported yet
  496. 243 UNTIL BigSets.InSet(FieldExitKeySet, LastKey);
  497. ***** ^ not supported yet
  498. ***** ^ not supported yet
  499. ***** ^ undeclared identifier
  500. ***** ^ not supported yet
  501. 244
  502. 245 ELSIF FieldRec.typ = FieldTypes.TypeCode( 'INTEGER' ) THEN
  503. ***** ^ not supported yet
  504. ***** ^ not supported yet
  505. ***** ^ not supported yet
  506. ***** ^ not supported yet
  507. ***** ^ not supported yet
  508. 246 done := FALSE;
  509. 247 REPEAT
  510. 248 ScrnUtl1.SetPointerBarColors( FrameRec );
  511. ***** ^ not supported yet
  512. ***** ^ not supported yet
  513. ***** ^ not supported yet
  514. 249 (* Distinguish bewteen integers and cardinals based on iMin *)
  515. 250 IF FieldRec.iMin < NumTypes.L0 THEN (* JDM/MBC *)
  516. ***** ^ not supported yet
  517. ***** ^ not supported yet
  518. ***** ^ not supported yet
  519. ***** ^ not supported yet
  520. 251 minusOK := TRUE; (* JDM/MBC *)
  521. 252 ELSE (* JDM/MBC *)
  522. 253 minusOK := FALSE; (* JDM/MBC *)
  523. 254 END; (* if FieldRec.iMin *) (* JDM/MBC *)
  524. 255 NumInput.ReadNumericField( FrameRec^.WindowHandle,
  525. ***** ^ not supported yet
  526. ***** ^ not supported yet
  527. ***** ^ not supported yet
  528. ***** ^ not supported yet
  529. 256 ImageRec.text, col1, row1, width, 0, minusOK,
  530. ***** ^ not supported yet
  531. ***** ^ not supported yet
  532. 257 LastKey, InterestingKeys ); (* JDM/MBC *)
  533. ***** ^ not supported yet
  534. 258 (* The user can't tell that we're exiting and re-
  535. 259 entering ReadNumeric every time she presses one of
  536. 260 the InterestingKeys. *)
  537. 261 ScrnUtl1.PutFieldImageRec( ImageRec, FrameRec,
  538. ***** ^ not supported yet
  539. ***** ^ not supported yet
  540. ***** ^ not supported yet
  541. ***** ^ not supported yet
  542. 262 FrameRec^.CurrentField );
  543. ***** ^ not supported yet
  544. ***** ^ not supported yet
  545. 263 TheKeyHandler( FrameRec, LastKey, LocalNextFrame );
  546. ***** ^ undeclared identifier
  547. ***** ^ not supported yet
  548. ***** ^ not supported yet
  549. 264 IF BigSets.InSet(FieldExitKeySet, LastKey) THEN
  550. ***** ^ not supported yet
  551. ***** ^ not supported yet
  552. ***** ^ undeclared identifier
  553. ***** ^ not supported yet
  554. 265 IF (LastKey = ExitKey) OR (LastKey = BackupKey) THEN
  555. ***** ^ undeclared identifier
  556. ***** ^ undeclared identifier
  557. 266 done := TRUE;
  558. 267 ELSE
  559. 268 done := PosUtils.IsBlank(ImageRec.text) OR
  560. ***** ^ not supported yet
  561. ***** ^ not supported yet
  562. ***** ^ not supported yet
  563. ***** ^ not supported yet
  564. 269 BetweenLongs( ImageRec.text, FieldRec.iMin,
  565. ***** ^ not supported yet
  566. ***** ^ not supported yet
  567. ***** ^ not supported yet
  568. ***** ^ not supported yet
  569. ***** ^ not supported yet
  570. 270 FieldRec.iMax );
  571. ***** ^ not supported yet
  572. ***** ^ not supported yet
  573. 271 IF NOT done THEN
  574. 272 MsgBox2.StrMsgBox( FrameRec, VWindows.NE,
  575. ***** ^ not supported yet
  576. ***** ^ not supported yet
  577. ***** ^ not supported yet
  578. ***** ^ not supported yet
  579. ***** ^ not supported yet
  580. 273 "Entry out of range. Press <Enter> to continue." );
  581. ***** ^ not supported yet
  582. 274 END;
  583. 275 END;
  584. 276 END;
  585. 277 UNTIL done;
  586. 278
  587. 279 ELSIF FieldRec.typ = FieldTypes.TypeCode( 'REAL' ) THEN
  588. ***** ^ not supported yet
  589. ***** ^ not supported yet
  590. ***** ^ not supported yet
  591. ***** ^ not supported yet
  592. ***** ^ not supported yet
  593. 280 done := FALSE;
  594. 281 REPEAT
  595. 282 ScrnUtl1.SetPointerBarColors( FrameRec );
  596. ***** ^ not supported yet
  597. ***** ^ not supported yet
  598. ***** ^ not supported yet
  599. 283 (* As with integers, range determines whether minus allowed *)
  600. 284 IF FieldRec.rMin < 0. THEN (* JDM/MBC *)
  601. ***** ^ not supported yet
  602. ***** ^ not supported yet
  603. 285 minusOK := TRUE; (* JDM/MBC *)
  604. 286 ELSE (* JDM/MBC *)
  605. 287 minusOK := FALSE; (* JDM/MBC *)
  606. 288 END; (* if FieldRec.rMin *) (* JDM/MBC *)
  607. 289 NumInput.ReadNumericField( FrameRec^.WindowHandle,
  608. ***** ^ not supported yet
  609. ***** ^ not supported yet
  610. ***** ^ not supported yet
  611. ***** ^ not supported yet
  612. 290 ImageRec.text, col1, row1, width, FieldRec.decimalPlace,
  613. ***** ^ not supported yet
  614. ***** ^ not supported yet
  615. ***** ^ not supported yet
  616. ***** ^ not supported yet
  617. 291 minusOK, LastKey, InterestingKeys ); (* JDM/MBC *)
  618. ***** ^ not supported yet
  619. 292 ScrnUtl1.PutFieldImageRec( ImageRec, FrameRec,
  620. ***** ^ not supported yet
  621. ***** ^ not supported yet
  622. ***** ^ not supported yet
  623. ***** ^ not supported yet
  624. 293 FrameRec^.CurrentField );
  625. ***** ^ not supported yet
  626. ***** ^ not supported yet
  627. 294 TheKeyHandler( FrameRec, LastKey, LocalNextFrame );
  628. ***** ^ undeclared identifier
  629. ***** ^ not supported yet
  630. ***** ^ not supported yet
  631. 295 IF BigSets.InSet(FieldExitKeySet, LastKey) THEN
  632. ***** ^ not supported yet
  633. ***** ^ not supported yet
  634. ***** ^ undeclared identifier
  635. ***** ^ not supported yet
  636. 296 IF (LastKey = ExitKey) OR (LastKey = BackupKey) THEN
  637. ***** ^ undeclared identifier
  638. ***** ^ undeclared identifier
  639. 297 done := TRUE;
  640. 298 ELSE
  641. 299 done := PosUtils.IsBlank(ImageRec.text) OR
  642. ***** ^ not supported yet
  643. ***** ^ not supported yet
  644. ***** ^ not supported yet
  645. ***** ^ not supported yet
  646. 300 BetweenReals( ImageRec.text, FieldRec.rMin,
  647. ***** ^ not supported yet
  648. ***** ^ not supported yet
  649. ***** ^ not supported yet
  650. ***** ^ not supported yet
  651. ***** ^ not supported yet
  652. 301 FieldRec.rMax );
  653. ***** ^ not supported yet
  654. ***** ^ not supported yet
  655. 302 IF NOT done THEN
  656. 303 MsgBox2.StrMsgBox( FrameRec, VWindows.NE,
  657. ***** ^ not supported yet
  658. ***** ^ not supported yet
  659. ***** ^ not supported yet
  660. ***** ^ not supported yet
  661. ***** ^ not supported yet
  662. 304 "Entry out of range. Press <Enter> to continue." );
  663. ***** ^ not supported yet
  664. 305 END;
  665. 306 END;
  666. 307 END;
  667. 308 UNTIL done;
  668. 309
  669. 310 ELSIF FieldRec.typ = FieldTypes.TypeCode( 'DATE' ) THEN
  670. ***** ^ not supported yet
  671. ***** ^ not supported yet
  672. ***** ^ not supported yet
  673. ***** ^ not supported yet
  674. ***** ^ not supported yet
  675. 311 TmpLegalKeys := StringKeySet;
  676. ***** ^ not supported yet
  677. ***** ^ undeclared identifier
  678. 312 LOOP
  679. 313 StrInput.ReadWithEdits( FrameRec^.WindowHandle,
  680. ***** ^ not supported yet
  681. ***** ^ not supported yet
  682. ***** ^ not supported yet
  683. ***** ^ not supported yet
  684. 314 ImageRec.text, col1, row1, width, CursorPos,
  685. ***** ^ not supported yet
  686. ***** ^ not supported yet
  687. 315 InsertMode, TRUE, LastKey, TmpLegalKeys,
  688. ***** ^ undeclared identifier
  689. ***** ^ not supported yet
  690. 316 InterestingKeys );
  691. ***** ^ not supported yet
  692. 317
  693. 318 ScrnUtl1.PutFieldImageRec( ImageRec, FrameRec,
  694. ***** ^ not supported yet
  695. ***** ^ not supported yet
  696. ***** ^ not supported yet
  697. ***** ^ not supported yet
  698. 319 FrameRec^.CurrentField );
  699. ***** ^ not supported yet
  700. ***** ^ not supported yet
  701. 320 TheKeyHandler( FrameRec, LastKey, LocalNextFrame );
  702. ***** ^ undeclared identifier
  703. ***** ^ not supported yet
  704. ***** ^ not supported yet
  705. 321 IF BigSets.InSet(FieldExitKeySet, LastKey) THEN
  706. ***** ^ not supported yet
  707. ***** ^ not supported yet
  708. ***** ^ undeclared identifier
  709. ***** ^ not supported yet
  710. 322 IF PosUtils.IsBlank(ImageRec.text) THEN
  711. ***** ^ not supported yet
  712. ***** ^ not supported yet
  713. ***** ^ not supported yet
  714. ***** ^ not supported yet
  715. 323 EXIT;
  716. 324 END;
  717. 325 DateFunctions.StrToDate(ImageRec.text, date, ok);
  718. ***** ^ not supported yet
  719. ***** ^ not supported yet
  720. ***** ^ not supported yet
  721. ***** ^ not supported yet
  722. ***** ^ not supported yet
  723. ***** ^ not supported yet
  724. 326 IF ok OR (LastKey = BackupKey) THEN
  725. ***** ^ undeclared identifier
  726. 327 EXIT;
  727. 328 END;
  728. 329 MsgBox2.StrMsgBox( FrameRec, VWindows.NE,
  729. ***** ^ not supported yet
  730. ***** ^ not supported yet
  731. ***** ^ not supported yet
  732. ***** ^ not supported yet
  733. ***** ^ not supported yet
  734. 330 "Invalid Date. Press any key." );
  735. ***** ^ not supported yet
  736. 331 END;
  737. 332 END (*loop *);
  738. 333
  739. 334 ELSIF FieldRec.typ = FieldTypes.TypeCode( 'BOOLEAN' ) THEN
  740. ***** ^ not supported yet
  741. ***** ^ not supported yet
  742. ***** ^ not supported yet
  743. ***** ^ not supported yet
  744. ***** ^ not supported yet
  745. 335 LOOP
  746. 336 LastKey := KbdInput.KeyHit( KbdInput.AnyKeyNum );
  747. ***** ^ not supported yet
  748. ***** ^ not supported yet
  749. ***** ^ not supported yet
  750. ***** ^ not supported yet
  751. 337 IF (LastKey = Key.Space) OR (LastKey = Key.Return) THEN
  752. ***** ^ not supported yet
  753. ***** ^ not supported yet
  754. ***** ^ not supported yet
  755. ***** ^ not supported yet
  756. 338 FieldRec.selected:= NOT FieldRec.selected;
  757. ***** ^ not supported yet
  758. ***** ^ not supported yet
  759. ***** ^ not supported yet
  760. ***** ^ not supported yet
  761. 339 IF width # 0 THEN
  762. 340 IF FieldRec.selected THEN
  763. ***** ^ not supported yet
  764. ***** ^ not supported yet
  765. 341 ImageRec.text[0]:=CHR(251);(* û *)
  766. ***** ^ not supported yet
  767. ***** ^ not supported yet
  768. ***** ^ not supported yet
  769. ***** ^ undeclared identifier
  770. ***** ^ not supported yet
  771. 342 ELSE
  772. 343 ImageRec.text[0]:=' '
  773. ***** ^ not supported yet
  774. ***** ^ not supported yet
  775. ***** ^ not supported yet
  776. 344 END;
  777. 345 END;
  778. 346 ScrnUtl1.PutFieldRec( FieldRec, FrameRec,
  779. ***** ^ not supported yet
  780. ***** ^ not supported yet
  781. ***** ^ not supported yet
  782. ***** ^ not supported yet
  783. 347 FrameRec^.CurrentField );
  784. ***** ^ not supported yet
  785. ***** ^ not supported yet
  786. 348 ScrnUtl1.PutFieldImageRec( ImageRec, FrameRec,
  787. ***** ^ not supported yet
  788. ***** ^ not supported yet
  789. ***** ^ not supported yet
  790. ***** ^ not supported yet
  791. 349 FrameRec^.CurrentField );
  792. ***** ^ not supported yet
  793. ***** ^ not supported yet
  794. 350 FramePainter.RedrawField(FrameRec,FrameRec^.CurrentField,TRUE);
  795. ***** ^ not supported yet
  796. ***** ^ not supported yet
  797. ***** ^ not supported yet
  798. ***** ^ not supported yet
  799. ***** ^ not supported yet
  800. ***** ^ not supported yet
  801. 351 END;
  802. 352 TheKeyHandler( FrameRec, LastKey, LocalNextFrame );
  803. ***** ^ undeclared identifier
  804. ***** ^ not supported yet
  805. ***** ^ not supported yet
  806. 353 IF BigSets.InSet(FieldExitKeySet, LastKey) THEN
  807. ***** ^ not supported yet
  808. ***** ^ not supported yet
  809. ***** ^ undeclared identifier
  810. ***** ^ not supported yet
  811. 354 EXIT;
  812. 355 END;
  813. 356 END (*loop *);
  814. 357
  815. 358 ELSIF FieldRec.typ = FieldTypes.TypeCode( 'EDITOR' ) THEN
  816. ***** ^ not supported yet
  817. ***** ^ not supported yet
  818. ***** ^ not supported yet
  819. ***** ^ not supported yet
  820. ***** ^ not supported yet
  821. 359 ScrnUtl1.GetEdRec( FrameRec, FrameRec^.CurrentField, TheList, EdRec );
  822. ***** ^ not supported yet
  823. ***** ^ not supported yet
  824. ***** ^ not supported yet
  825. ***** ^ not supported yet
  826. ***** ^ not supported yet
  827. ***** ^ not supported yet
  828. ***** ^ not supported yet
  829. 360 EdRec.overwriting := NOT InsertMode;
  830. ***** ^ not supported yet
  831. ***** ^ not supported yet
  832. ***** ^ undeclared identifier
  833. 361 VEditor.TheEditor( TheList, EdRec );
  834. ***** ^ not supported yet
  835. ***** ^ not supported yet
  836. ***** ^ not supported yet
  837. ***** ^ not supported yet
  838. 362 ScrnUtl1.PutEdRec( FrameRec, FrameRec^.CurrentField, TheList, EdRec );
  839. ***** ^ not supported yet
  840. ***** ^ not supported yet
  841. ***** ^ not supported yet
  842. ***** ^ not supported yet
  843. ***** ^ not supported yet
  844. ***** ^ not supported yet
  845. ***** ^ not supported yet
  846. 363 M2Strings.Assign( EdRec.NextFrame, NextFrame );
  847. ***** ^ not supported yet
  848. ***** ^ not supported yet
  849. ***** ^ not supported yet
  850. ***** ^ not supported yet
  851. ***** ^ not supported yet
  852. 364 InsertMode := NOT EdRec.overwriting;
  853. ***** ^ undeclared identifier
  854. ***** ^ not supported yet
  855. ***** ^ not supported yet
  856. 365 LastKey := EdRec.EdLastKey;
  857. ***** ^ not supported yet
  858. ***** ^ not supported yet
  859. 366 RETURN;
  860. 367
  861. 368 ELSE
  862. 369 ErrorManager.WARN( 'Unexpected field type entered' );
  863. ***** ^ not supported yet
  864. ***** ^ not supported yet
  865. ***** ^ not supported yet
  866. 370 END;
  867. 371
  868. 372 Hash.Compute( ImageRec.text, Check1, Check2, Check3 );
  869. ***** ^ not supported yet
  870. ***** ^ not supported yet
  871. ***** ^ not supported yet
  872. ***** ^ not supported yet
  873. ***** ^ not supported yet
  874. 373 IF (ChangeCheck1 # Check1) OR (ChangeCheck2 # Check2)
  875. 374 OR (ChangeCheck3 # Check3) THEN
  876. 375 FieldRec.ChangeMade := TRUE;
  877. ***** ^ not supported yet
  878. ***** ^ not supported yet
  879. 376 END;
  880. 377 ScrnUtl1.PutFieldRec( FieldRec, FrameRec,
  881. ***** ^ not supported yet
  882. ***** ^ not supported yet
  883. ***** ^ not supported yet
  884. ***** ^ not supported yet
  885. 378 FrameRec^.CurrentField );
  886. ***** ^ not supported yet
  887. ***** ^ not supported yet
  888. 379
  889. 380 M2Strings.Assign( LocalNextFrame, NextFrame );
  890. ***** ^ not supported yet
  891. ***** ^ not supported yet
  892. ***** ^ not supported yet
  893. ***** ^ not supported yet
  894. 381 END DefaultFieldHandler;
  895. ***** ^ not supported yet
  896. 382
  897. 383
  898. 384 PROCEDURE DoFunctions( FrameRec : ScrnTypes.DisplayFrame; VAR LastKey:
  899. ***** ^ not supported yet
  900. 385 CARDINAL ) : INTEGER;
  901. 386 VAR
  902. 387 NextFrame: ScrnTypes.AFrameName;
  903. ***** ^ not supported yet
  904. 388 tmpint: INTEGER;
  905. 389 BEGIN
  906. 390 NextFrame := '';
  907. ***** ^ not supported yet
  908. 391 DefaultKeyHandler( FrameRec, LastKey, NextFrame );
  909. ***** ^ not supported yet
  910. ***** ^ not supported yet
  911. ***** ^ not supported yet
  912. 392 IF PosUtils.Equal( NextFrame, ScrnTypes.ContinueInput ) THEN
  913. ***** ^ not supported yet
  914. ***** ^ not supported yet
  915. ***** ^ not supported yet
  916. ***** ^ not supported yet
  917. ***** ^ not supported yet
  918. 393 tmpint := ContinueCode;
  919. ***** ^ undeclared identifier
  920. 394 ELSIF NOT StrConv.StrToInteger( NextFrame, 0, tmpint ) THEN
  921. ***** ^ not supported yet
  922. ***** ^ not supported yet
  923. ***** ^ not supported yet
  924. ***** ^ not supported yet
  925. 395 ErrorManager.WARN( OldFunction );
  926. ***** ^ not supported yet
  927. ***** ^ not supported yet
  928. ***** ^ not supported yet
  929. 396 END;
  930. 397 RETURN tmpint;
  931. 398 END DoFunctions;
  932. ***** ^ not supported yet
  933. 399
  934. 400
  935. 401 PROCEDURE DoFieldInput( FrameRec : ScrnTypes.DisplayFrame; col1, row1:
  936. ***** ^ not supported yet
  937. 402 CARDINAL; VAR LastKey : CARDINAL ) : INTEGER;
  938. 403 VAR
  939. 404 NextFrame: ScrnTypes.AFrameName;
  940. ***** ^ not supported yet
  941. 405 tmpint: INTEGER;
  942. 406 BEGIN
  943. 407 NextFrame := '';
  944. ***** ^ not supported yet
  945. 408 DefaultFieldHandler( FrameRec, col1, row1,
  946. ***** ^ not supported yet
  947. ***** ^ not supported yet
  948. 409 LastKey, NextFrame );
  949. ***** ^ not supported yet
  950. 410 IF PosUtils.Equal( NextFrame, ScrnTypes.ContinueInput ) THEN
  951. ***** ^ not supported yet
  952. ***** ^ not supported yet
  953. ***** ^ not supported yet
  954. ***** ^ not supported yet
  955. ***** ^ not supported yet
  956. 411 tmpint := ContinueCode;
  957. ***** ^ undeclared identifier
  958. 412 ELSIF NOT StrConv.StrToInteger( NextFrame, 0, tmpint ) THEN
  959. ***** ^ not supported yet
  960. ***** ^ not supported yet
  961. ***** ^ not supported yet
  962. ***** ^ not supported yet
  963. 413 ErrorManager.WARN( OldFunction );
  964. ***** ^ not supported yet
  965. ***** ^ not supported yet
  966. ***** ^ not supported yet
  967. 414 END;
  968. 415 RETURN tmpint;
  969. 416 END DoFieldInput;
  970. ***** ^ not supported yet
  971. 417
  972. 418 (*
  973. 419 PROCEDURE OldKeyHandler( FrameRec : ScrnTypes.DisplayFrame; VAR
  974. 420 LastKey: CARDINAL; VAR NextFrame: ScrnTypes.AFrameName );
  975. 421 (*If you want to continue using procedures that you assigned
  976. 422 to the Release 1.4 version of TheFunctProc, assign this
  977. 423 procedure to TheKeyHandler.*)
  978. 424 VAR
  979. 425 tmpint: ScrnTypes.FrameKey;
  980. 426 BEGIN
  981. 427 tmpint := TheFunctProc( FrameRec, LastKey );
  982. 428 IF tmpint = ContinueCode THEN
  983. 429 StrEdit.AssignStr( ScrnTypes.ContinueInput, NextFrame );
  984. 430 ELSE
  985. 431 StrConv.IntegerToStr( tmpint, 0, NextFrame );
  986. 432 END;
  987. 433 END OldKeyHandler;
  988. 434
  989. 435 PROCEDURE OldFieldHandler( FrameRec : ScrnTypes.DisplayFrame;
  990. 436 col1, row1: CARDINAL; VAR LastKey : CARDINAL; VAR
  991. 437 NextFrame: ScrnTypes.AFrameName );
  992. 438 (*If you want to continue using procedures that you assigned
  993. 439 to the Release 1.4 version of TheFieldProc, assign this
  994. 440 procedure to TheFieldHandler.*)
  995. 441 VAR
  996. 442 tmpint: ScrnTypes.FrameKey;
  997. 443 BEGIN
  998. 444 tmpint := TheFieldProc( FrameRec, col1, row1, LastKey );
  999. 445 IF tmpint = ContinueCode THEN
  1000. 446 StrEdit.AssignStr( ScrnTypes.ContinueInput, NextFrame );
  1001. 447 ELSE
  1002. 448 StrConv.IntegerToStr( tmpint, 0, NextFrame );
  1003. 449 END;
  1004. 450 END OldFieldHandler;
  1005. 451 *)
  1006. 452
  1007. 453 PROCEDURE Init();
  1008. 454 BEGIN
  1009. 455 IF Initialized THEN
  1010. 456 RETURN;
  1011. 457 ELSE
  1012. 458 Initialized := TRUE;
  1013. 459 END;
  1014. 460 (*EntryDiag:
  1015. 461 Diagnostics.Init();
  1016. 462 :EntryDiag*)
  1017. 463
  1018. 464 BigSets.Init();
  1019. ***** ^ not supported yet
  1020. ***** ^ not supported yet
  1021. ***** ^ not supported yet
  1022. 465 ByteFiddler.Init();
  1023. ***** ^ not supported yet
  1024. ***** ^ not supported yet
  1025. ***** ^ not supported yet
  1026. 466 ControlUtils.Init();
  1027. ***** ^ not supported yet
  1028. ***** ^ not supported yet
  1029. ***** ^ not supported yet
  1030. 467 DateFunctions.Init();
  1031. ***** ^ not supported yet
  1032. ***** ^ not supported yet
  1033. ***** ^ not supported yet
  1034. 468 Editor.Init();
  1035. ***** ^ not supported yet
  1036. ***** ^ not supported yet
  1037. ***** ^ not supported yet
  1038. 469 ErrorManager.Init();
  1039. ***** ^ not supported yet
  1040. ***** ^ not supported yet
  1041. ***** ^ not supported yet
  1042. 470 FieldTypes.Init();
  1043. ***** ^ not supported yet
  1044. ***** ^ not supported yet
  1045. ***** ^ not supported yet
  1046. 471 FramePainter.Init();
  1047. ***** ^ not supported yet
  1048. ***** ^ not supported yet
  1049. ***** ^ not supported yet
  1050. 472 GenLists.Init();
  1051. ***** ^ not supported yet
  1052. ***** ^ not supported yet
  1053. ***** ^ not supported yet
  1054. 473 Hash.Init();
  1055. ***** ^ not supported yet
  1056. ***** ^ not supported yet
  1057. ***** ^ not supported yet
  1058. 474 InputManager.Init();
  1059. ***** ^ not supported yet
  1060. ***** ^ not supported yet
  1061. ***** ^ not supported yet
  1062. 475 KbdInput.Init();
  1063. ***** ^ not supported yet
  1064. ***** ^ not supported yet
  1065. ***** ^ not supported yet
  1066. 476 Key.Init();
  1067. ***** ^ not supported yet
  1068. ***** ^ not supported yet
  1069. ***** ^ not supported yet
  1070. 477 ListUtils.Init();
  1071. ***** ^ not supported yet
  1072. ***** ^ not supported yet
  1073. ***** ^ not supported yet
  1074. 478 LowLevel.Init();
  1075. ***** ^ not supported yet
  1076. ***** ^ not supported yet
  1077. ***** ^ not supported yet
  1078. 479 M2Strings.Init();
  1079. ***** ^ not supported yet
  1080. ***** ^ not supported yet
  1081. ***** ^ not supported yet
  1082. 480 MsgBox2.Init();
  1083. ***** ^ not supported yet
  1084. ***** ^ not supported yet
  1085. ***** ^ not supported yet
  1086. 481 Numbers.Init();
  1087. ***** ^ not supported yet
  1088. ***** ^ not supported yet
  1089. ***** ^ not supported yet
  1090. 482 NumInput.Init();
  1091. ***** ^ not supported yet
  1092. ***** ^ not supported yet
  1093. ***** ^ not supported yet
  1094. 483 NumTypes.Init();
  1095. ***** ^ not supported yet
  1096. ***** ^ not supported yet
  1097. ***** ^ not supported yet
  1098. 484 PosUtils.Init();
  1099. ***** ^ not supported yet
  1100. ***** ^ not supported yet
  1101. ***** ^ not supported yet
  1102. 485 ScrnTypes.Init();
  1103. ***** ^ not supported yet
  1104. ***** ^ not supported yet
  1105. ***** ^ not supported yet
  1106. 486 ScrnUtl1.Init();
  1107. ***** ^ not supported yet
  1108. ***** ^ not supported yet
  1109. ***** ^ not supported yet
  1110. 487 StrConv.Init();
  1111. ***** ^ not supported yet
  1112. ***** ^ not supported yet
  1113. ***** ^ not supported yet
  1114. 488 StrEdit.Init();
  1115. ***** ^ not supported yet
  1116. ***** ^ not supported yet
  1117. ***** ^ not supported yet
  1118. 489 StrInput.Init();
  1119. ***** ^ not supported yet
  1120. ***** ^ not supported yet
  1121. ***** ^ not supported yet
  1122. 490 VEditor.Init();
  1123. ***** ^ not supported yet
  1124. ***** ^ not supported yet
  1125. ***** ^ not supported yet
  1126. 491 VStorage.Init();
  1127. ***** ^ not supported yet
  1128. ***** ^ not supported yet
  1129. ***** ^ not supported yet
  1130. 492 VWindows.Init();
  1131. ***** ^ not supported yet
  1132. ***** ^ not supported yet
  1133. ***** ^ not supported yet
  1134. 493
  1135. 494 (*EntryDiag:
  1136. 495 Diagnostics.diagS( 'Entering UserOps', '' );
  1137. 496 :EntryDiag*)
  1138. 497
  1139. 498 VEditor.TheEditor := Editor.DefaultEditor;
  1140. ***** ^ not supported yet
  1141. ***** ^ not supported yet
  1142. ***** ^ not supported yet
  1143. ***** ^ not supported yet
  1144. 499 Exiting := FALSE;
  1145. ***** ^ undeclared identifier
  1146. 500 InsertMode := FALSE;
  1147. ***** ^ undeclared identifier
  1148. 501
  1149. 502 DoPrompting := TRUE;
  1150. ***** ^ undeclared identifier
  1151. 503 (* whether or not to use prompts *)
  1152. 504 PromptRow := VWindows.EndRow(VWindows.CurrentWindow) - 1;
  1153. ***** ^ undeclared identifier
  1154. ***** ^ not supported yet
  1155. ***** ^ not supported yet
  1156. ***** ^ not supported yet
  1157. ***** ^ not supported yet
  1158. 505 PromptCol := 2;
  1159. ***** ^ undeclared identifier
  1160. 506 (* the screen row and column to show prompts if they are used *)
  1161. 507 PromptLength := VWindows.EndCol(VWindows.CurrentWindow) - 2;
  1162. ***** ^ undeclared identifier
  1163. ***** ^ not supported yet
  1164. ***** ^ not supported yet
  1165. ***** ^ not supported yet
  1166. ***** ^ not supported yet
  1167. 508 (* the maximum length of prompts used. *)
  1168. 509
  1169. 510 TheKeyHandler := DefaultKeyHandler;
  1170. ***** ^ undeclared identifier
  1171. ***** ^ not supported yet
  1172. 511 TheFieldHandler := DefaultFieldHandler;
  1173. ***** ^ undeclared identifier
  1174. ***** ^ not supported yet
  1175. 512 (* The routine that processes function keys in
  1176. 513 ControlFrame; see OldKeyHandler and OldFieldHandler,
  1177. 514 above, if you are having problems with upgrading 1.4
  1178. 515 code. *)
  1179. 516
  1180. 517 TheFieldProc := DoFieldInput;
  1181. ***** ^ undeclared identifier
  1182. ***** ^ not supported yet
  1183. 518 TheFunctProc := DoFunctions;
  1184. ***** ^ undeclared identifier
  1185. ***** ^ not supported yet
  1186. 519
  1187. 520 (* Now, define valid keys for function, screen actions,
  1188. 521 and string fields *)
  1189. 522
  1190. 523 BigSets.InitSet( FunctKeySet );
  1191. ***** ^ not supported yet
  1192. ***** ^ not supported yet
  1193. ***** ^ undeclared identifier
  1194. 524 BigSets.AppendSet( FunctKeySet, "{27, 315, 316, 317, 324}" );
  1195. ***** ^ not supported yet
  1196. ***** ^ not supported yet
  1197. ***** ^ undeclared identifier
  1198. ***** ^ not supported yet
  1199. 525 (* extra keys we define as valid: ESC, F1, F2, F9, F10 *)
  1200. 526
  1201. 527 BigSets.InitSet( ScreenKeySet );
  1202. ***** ^ not supported yet
  1203. ***** ^ not supported yet
  1204. ***** ^ undeclared identifier
  1205. 528 (* These are the keys that are legal when the pointer is
  1206. 529 not in an input field -- i.e., when it's in a choice
  1207. 530 field or goto field. ScreenInput.ControlFrame adds to
  1208. 531 it the FunctKeySet and the selection characters for each
  1209. 532 frame. *)
  1210. 533 BigSets.AppendSet( ScreenKeySet,
  1211. ***** ^ not supported yet
  1212. ***** ^ not supported yet
  1213. ***** ^ undeclared identifier
  1214. 534 "{13, 9, 271, 328, 336, 329, 331, 333, 337, 374, 388}" );
  1215. ***** ^ not supported yet
  1216. 535 (* CR, TAB, BTB, UARW, DARW, PGUP, RARW, LARW, PGDN, CtrlPgDn, CtrlPgUp *)
  1217. 536 FieldExitKeySet := ScreenKeySet;
  1218. ***** ^ undeclared identifier
  1219. ***** ^ undeclared identifier
  1220. 537 BigSets.AppendSet( FieldExitKeySet, "{27, 317, 324}" );
  1221. ***** ^ not supported yet
  1222. ***** ^ not supported yet
  1223. ***** ^ undeclared identifier
  1224. ***** ^ not supported yet
  1225. 538
  1226. 539 BigSets.InitSet( StringKeySet );
  1227. ***** ^ not supported yet
  1228. ***** ^ not supported yet
  1229. ***** ^ undeclared identifier
  1230. 540 BigSets.AppendSet( StringKeySet, "{8, ' '..'~', 128..175, 224..253}" );
  1231. ***** ^ not supported yet
  1232. ***** ^ not supported yet
  1233. ***** ^ undeclared identifier
  1234. ***** ^ not supported yet
  1235. 541 BigSets.AppendSet( StringKeySet,
  1236. ***** ^ not supported yet
  1237. ***** ^ not supported yet
  1238. ***** ^ undeclared identifier
  1239. 542 "{274, 288, 338, 339, 327, 335, 371, 372}" );
  1240. ***** ^ not supported yet
  1241. 543 (* regular ASCII characters, foreign language characters,
  1242. 544 math characters, backspace, AltE, AltD, Ins, Del,
  1243. 545 Home, End, CTL arrows *)
  1244. 546
  1245. 547 HelpKey := Key.F1;
  1246. ***** ^ undeclared identifier
  1247. ***** ^ not supported yet
  1248. ***** ^ not supported yet
  1249. 548 ExitKey := Key.F2;
  1250. ***** ^ undeclared identifier
  1251. ***** ^ not supported yet
  1252. ***** ^ not supported yet
  1253. 549 TimeKey := Key.F3;
  1254. ***** ^ undeclared identifier
  1255. ***** ^ not supported yet
  1256. ***** ^ not supported yet
  1257. 550 SubmitKey := Key.F10;
  1258. ***** ^ undeclared identifier
  1259. ***** ^ not supported yet
  1260. ***** ^ not supported yet
  1261. 551 BackupKey := Key.Escape;
  1262. ***** ^ undeclared identifier
  1263. ***** ^ not supported yet
  1264. ***** ^ not supported yet
  1265. 552
  1266. 553 (*EntryDiag:
  1267. 554 Diagnostics.diagS( 'Exiting UserOps', '' );
  1268. 555 :EntryDiag*)
  1269. 556
  1270. 557 END Init;
  1271. ***** ^ not supported yet
  1272. 558
  1273. 559
  1274. 560 BEGIN
  1275. 561 Initialized := FALSE;
  1276. 562 Init();
  1277. ***** ^ not supported yet
  1278. ***** ^ not supported yet
  1279. 563 END UserOps.
  1280. ***** ^ not supported yet
  1281. 716 errors