CONTROLU.LST 92 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964
  1. Listing:
  2. 1 IMPLEMENTATION MODULE ControlUtils;
  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/controlu.mov 1.5 10 Mar 1991 15:25:34 coleb $
  13. 12 *
  14. 13 *)
  15. 14
  16. 15
  17. 16 IMPORT DspFiles;
  18. 17 IMPORT ErrorManager;
  19. 18 IMPORT ErrorNames;
  20. 19 IMPORT FrameManager;
  21. 20 IMPORT FramePainter;
  22. 21 IMPORT GenLists;
  23. 22 IMPORT InputManager;
  24. 23 IMPORT LowLevel;
  25. 24 IMPORT M2Strings;
  26. 25 IMPORT MsColors;
  27. 26 IMPORT NdxBones;
  28. 27 IMPORT Numbers;
  29. 28 IMPORT PosUtils;
  30. 29 IMPORT Rectangles;
  31. 30 IMPORT ScrnTypes;
  32. 31 IMPORT ScrnUtl1;
  33. 32 IMPORT ScrnUtl2;
  34. 33 IMPORT StrConv;
  35. 34 IMPORT StrEdit;
  36. 35 IMPORT SYSTEM;
  37. 36 IMPORT VEditor;
  38. 37 IMPORT VWindows;
  39. 38
  40. 39
  41. 40 VAR
  42. 41 Initialized : BOOLEAN;
  43. 42
  44. 43 PROCEDURE Init();
  45. 44 BEGIN
  46. 45 IF Initialized THEN
  47. 46 RETURN;
  48. 47 ELSE
  49. 48 Initialized := TRUE;
  50. 49 END;
  51. 50 DspFiles.Init();
  52. ***** ^ not supported yet
  53. ***** ^ not supported yet
  54. ***** ^ not supported yet
  55. 51 ErrorManager.Init();
  56. ***** ^ not supported yet
  57. ***** ^ not supported yet
  58. ***** ^ not supported yet
  59. 52 ErrorNames.Init();
  60. ***** ^ not supported yet
  61. ***** ^ not supported yet
  62. ***** ^ not supported yet
  63. 53 FrameManager.Init();
  64. ***** ^ not supported yet
  65. ***** ^ not supported yet
  66. ***** ^ not supported yet
  67. 54 FramePainter.Init();
  68. ***** ^ not supported yet
  69. ***** ^ not supported yet
  70. ***** ^ not supported yet
  71. 55 GenLists.Init();
  72. ***** ^ not supported yet
  73. ***** ^ not supported yet
  74. ***** ^ not supported yet
  75. 56 InputManager.Init();
  76. ***** ^ not supported yet
  77. ***** ^ not supported yet
  78. ***** ^ not supported yet
  79. 57 LowLevel.Init();
  80. ***** ^ not supported yet
  81. ***** ^ not supported yet
  82. ***** ^ not supported yet
  83. 58 M2Strings.Init();
  84. ***** ^ not supported yet
  85. ***** ^ not supported yet
  86. ***** ^ not supported yet
  87. 59 MsColors.Init();
  88. ***** ^ not supported yet
  89. ***** ^ not supported yet
  90. ***** ^ not supported yet
  91. 60 NdxBones.Init();
  92. ***** ^ not supported yet
  93. ***** ^ not supported yet
  94. ***** ^ not supported yet
  95. 61 Numbers.Init();
  96. ***** ^ not supported yet
  97. ***** ^ not supported yet
  98. ***** ^ not supported yet
  99. 62 PosUtils.Init();
  100. ***** ^ not supported yet
  101. ***** ^ not supported yet
  102. ***** ^ not supported yet
  103. 63 Rectangles.Init();
  104. ***** ^ not supported yet
  105. ***** ^ not supported yet
  106. ***** ^ not supported yet
  107. 64 ScrnTypes.Init();
  108. ***** ^ not supported yet
  109. ***** ^ not supported yet
  110. ***** ^ not supported yet
  111. 65 ScrnUtl1.Init();
  112. ***** ^ not supported yet
  113. ***** ^ not supported yet
  114. ***** ^ not supported yet
  115. 66 ScrnUtl2.Init();
  116. ***** ^ not supported yet
  117. ***** ^ not supported yet
  118. ***** ^ not supported yet
  119. 67 StrConv.Init();
  120. ***** ^ not supported yet
  121. ***** ^ not supported yet
  122. ***** ^ not supported yet
  123. 68 StrEdit.Init();
  124. ***** ^ not supported yet
  125. ***** ^ not supported yet
  126. ***** ^ not supported yet
  127. 69 VEditor.Init();
  128. ***** ^ not supported yet
  129. ***** ^ not supported yet
  130. ***** ^ not supported yet
  131. 70 VWindows.Init();
  132. ***** ^ not supported yet
  133. ***** ^ not supported yet
  134. ***** ^ not supported yet
  135. 71 END Init;
  136. ***** ^ not supported yet
  137. 72
  138. 73
  139. 74 CONST
  140. 75 AfterLastElmt = 65535;
  141. 76
  142. 77 PROCEDURE NotFieldWarning( FieldName, FrameName: ARRAY OF CHAR );
  143. ***** ^ not supported yet
  144. 78 VAR
  145. 79 dumstr1: ARRAY [0..79] OF CHAR;
  146. ***** ^ not supported yet
  147. ***** ^ not supported yet
  148. 80 BEGIN
  149. 81 StrEdit.AssignStr( ' is not a field in frame ', dumstr1 );
  150. ***** ^ not supported yet
  151. ***** ^ not supported yet
  152. ***** ^ not supported yet
  153. ***** ^ not supported yet
  154. 82 M2Strings.Insert( FieldName, dumstr1, 0 );
  155. ***** ^ not supported yet
  156. ***** ^ not supported yet
  157. ***** ^ not supported yet
  158. ***** ^ not supported yet
  159. ***** ^ not supported yet
  160. 83 StrEdit.Append( dumstr1, FrameName );
  161. ***** ^ not supported yet
  162. ***** ^ not supported yet
  163. ***** ^ not supported yet
  164. ***** ^ not supported yet
  165. 84 ErrorManager.WARN( dumstr1 );
  166. ***** ^ not supported yet
  167. ***** ^ not supported yet
  168. ***** ^ not supported yet
  169. 85 END NotFieldWarning;
  170. ***** ^ not supported yet
  171. 86
  172. 87
  173. 88
  174. 89 PROCEDURE AddEditorField(VAR TheFrame : ScrnTypes.DisplayFrame;
  175. ***** ^ not supported yet
  176. 90 VAR TheList: GenLists.GenList; VAR ControlRec:
  177. ***** ^ not supported yet
  178. 91 VEditor.AnEdControlRec );
  179. ***** ^ not supported yet
  180. 92 VAR
  181. 93 ImageNum: CARDINAL;
  182. 94 TmpRec: ScrnTypes.ImageElement;
  183. ***** ^ not supported yet
  184. 95 FieldRec: ScrnTypes.InputFieldRecord;
  185. ***** ^ not supported yet
  186. 96 dumstr : ARRAY [0..1] OF CHAR;
  187. ***** ^ not supported yet
  188. ***** ^ not supported yet
  189. 97 AreaInBox : Rectangles.ARectangle;
  190. ***** ^ not supported yet
  191. 98 BEGIN
  192. 99 ControlRec.FrameRec := TheFrame;
  193. ***** ^ not supported yet
  194. ***** ^ not supported yet
  195. ***** ^ not supported yet
  196. 100 IF NOT GenLists.Initialized( TheFrame^.FieldList ) THEN
  197. ***** ^ not supported yet
  198. ***** ^ not supported yet
  199. ***** ^ not supported yet
  200. ***** ^ not supported yet
  201. 101 GenLists.NewList( TheFrame^.FieldList );
  202. ***** ^ not supported yet
  203. ***** ^ not supported yet
  204. ***** ^ not supported yet
  205. ***** ^ not supported yet
  206. 102 ScrnUtl1.PutFrameLists( TheFrame );
  207. ***** ^ not supported yet
  208. ***** ^ not supported yet
  209. ***** ^ not supported yet
  210. 103 (*Make sure the new FieldList gets inserted into
  211. 104 TheFrame's .self list. *)
  212. 105 END;
  213. 106 IF NOT GenLists.Initialized( TheFrame^.EdFieldList ) THEN
  214. ***** ^ not supported yet
  215. ***** ^ not supported yet
  216. ***** ^ not supported yet
  217. ***** ^ not supported yet
  218. 107 GenLists.NewList( TheFrame^.EdFieldList );
  219. ***** ^ not supported yet
  220. ***** ^ not supported yet
  221. ***** ^ not supported yet
  222. ***** ^ not supported yet
  223. 108 ScrnUtl1.PutFrameLists( TheFrame );
  224. ***** ^ not supported yet
  225. ***** ^ not supported yet
  226. ***** ^ not supported yet
  227. 109 (*Make sure the new EdFieldList gets inserted into
  228. 110 TheFrame's .self list. *)
  229. 111 END;
  230. 112 dumstr[0] := 0C;
  231. ***** ^ not supported yet
  232. ***** ^ not supported yet
  233. 113 dumstr[1] := 0C;
  234. ***** ^ not supported yet
  235. ***** ^ not supported yet
  236. 114 Rectangles.DefineRectangle( AreaInBox, ControlRec.Col1,
  237. ***** ^ not supported yet
  238. ***** ^ not supported yet
  239. ***** ^ not supported yet
  240. ***** ^ not supported yet
  241. ***** ^ not supported yet
  242. 115 ControlRec.Row1, ControlRec.Col2, ControlRec.Row2 );
  243. ***** ^ not supported yet
  244. ***** ^ not supported yet
  245. ***** ^ not supported yet
  246. ***** ^ not supported yet
  247. ***** ^ not supported yet
  248. ***** ^ not supported yet
  249. 116 IF ControlRec.EntryBox > 0 THEN
  250. ***** ^ not supported yet
  251. ***** ^ not supported yet
  252. 117 Rectangles.ShrinkRect( AreaInBox );
  253. ***** ^ not supported yet
  254. ***** ^ not supported yet
  255. ***** ^ not supported yet
  256. 118 END;
  257. 119 ScrnUtl2.CreateImageElement( TmpRec, AreaInBox.col1,
  258. ***** ^ not supported yet
  259. ***** ^ not supported yet
  260. ***** ^ not supported yet
  261. ***** ^ not supported yet
  262. ***** ^ not supported yet
  263. 120 AreaInBox.row1, TheFrame^.normfor, TheFrame^.normbak,
  264. ***** ^ not supported yet
  265. ***** ^ not supported yet
  266. ***** ^ not supported yet
  267. ***** ^ not supported yet
  268. ***** ^ not supported yet
  269. ***** ^ not supported yet
  270. 121 TheFrame^.normatrb, GenLists.ListLength(
  271. ***** ^ not supported yet
  272. ***** ^ not supported yet
  273. ***** ^ not supported yet
  274. ***** ^ not supported yet
  275. 122 TheFrame^.FieldList ) + 1, dumstr );
  276. ***** ^ not supported yet
  277. ***** ^ not supported yet
  278. ***** ^ not supported yet
  279. 123 ScrnUtl2.AddImageElement( TheFrame, TmpRec, ImageNum );
  280. ***** ^ not supported yet
  281. ***** ^ not supported yet
  282. ***** ^ not supported yet
  283. ***** ^ not supported yet
  284. ***** ^ not supported yet
  285. 124 ScrnTypes.InitField( FieldRec );
  286. ***** ^ not supported yet
  287. ***** ^ not supported yet
  288. ***** ^ not supported yet
  289. 125 FieldRec.ImageNum := ImageNum;
  290. ***** ^ not supported yet
  291. ***** ^ not supported yet
  292. 126 FieldRec.typ := ScrnTypes.EditorCode;
  293. ***** ^ not supported yet
  294. ***** ^ not supported yet
  295. ***** ^ not supported yet
  296. ***** ^ not supported yet
  297. 127 FieldRec.req := FALSE;
  298. ***** ^ not supported yet
  299. ***** ^ not supported yet
  300. 128 FieldRec.EdFieldNum := GenLists.ListLength( TheFrame^.EdFieldList ) + 1;
  301. ***** ^ not supported yet
  302. ***** ^ not supported yet
  303. ***** ^ not supported yet
  304. ***** ^ not supported yet
  305. ***** ^ not supported yet
  306. ***** ^ not supported yet
  307. 129 GenLists.ListInsert( TheList, GenLists.ListCode, TheFrame^.EdFieldList,
  308. ***** ^ not supported yet
  309. ***** ^ not supported yet
  310. ***** ^ not supported yet
  311. ***** ^ not supported yet
  312. ***** ^ not supported yet
  313. ***** ^ not supported yet
  314. ***** ^ not supported yet
  315. 130 FieldRec.EdFieldNum );
  316. ***** ^ not supported yet
  317. ***** ^ not supported yet
  318. 131 FieldRec.Col2 := AreaInBox.col2;
  319. ***** ^ not supported yet
  320. ***** ^ not supported yet
  321. ***** ^ not supported yet
  322. ***** ^ not supported yet
  323. 132 FieldRec.Row2 := AreaInBox.row2;
  324. ***** ^ not supported yet
  325. ***** ^ not supported yet
  326. ***** ^ not supported yet
  327. ***** ^ not supported yet
  328. 133 FieldRec.TextRow1 := ControlRec.TextRow1;
  329. ***** ^ not supported yet
  330. ***** ^ not supported yet
  331. ***** ^ not supported yet
  332. ***** ^ not supported yet
  333. 134 FieldRec.CursorCol := ControlRec.CursorCol;
  334. ***** ^ not supported yet
  335. ***** ^ not supported yet
  336. ***** ^ not supported yet
  337. ***** ^ not supported yet
  338. 135 FieldRec.CursorRow := ControlRec.CursorRow;
  339. ***** ^ not supported yet
  340. ***** ^ not supported yet
  341. ***** ^ not supported yet
  342. ***** ^ not supported yet
  343. 136 FieldRec.MaxLines := ControlRec.MaxLines;
  344. ***** ^ not supported yet
  345. ***** ^ not supported yet
  346. ***** ^ not supported yet
  347. ***** ^ not supported yet
  348. 137 FieldRec.ReadOnly := ControlRec.ReadOnly;
  349. ***** ^ not supported yet
  350. ***** ^ not supported yet
  351. ***** ^ not supported yet
  352. ***** ^ not supported yet
  353. 138 ScrnUtl1.PutFieldRec( FieldRec, TheFrame, AfterLastElmt );
  354. ***** ^ not supported yet
  355. ***** ^ not supported yet
  356. ***** ^ not supported yet
  357. ***** ^ not supported yet
  358. ***** ^ not supported yet
  359. 139 IF TheFrame^.action = 'W' THEN
  360. ***** ^ not supported yet
  361. ***** ^ not supported yet
  362. 140 TheFrame^.action := 'I';
  363. ***** ^ not supported yet
  364. ***** ^ not supported yet
  365. 141 END;
  366. 142 (* The action char is lower case while the frame is
  367. 143 active. *)
  368. 144 IF TheFrame^.action = 'w' THEN
  369. ***** ^ not supported yet
  370. ***** ^ not supported yet
  371. 145 TheFrame^.action := 'i';
  372. ***** ^ not supported yet
  373. ***** ^ not supported yet
  374. 146 END;
  375. 147 END AddEditorField;
  376. ***** ^ not supported yet
  377. 148
  378. 149
  379. 150 PROCEDURE AddStrField(VAR TheFrame : ScrnTypes.DisplayFrame;
  380. ***** ^ not supported yet
  381. 151 Col, Row : CARDINAL; text : ARRAY OF CHAR; width: CARDINAL );
  382. ***** ^ not supported yet
  383. 152 VAR
  384. 153 ImageNum: CARDINAL;
  385. 154 TmpRec: ScrnTypes.ImageElement;
  386. ***** ^ not supported yet
  387. 155 FieldRec: ScrnTypes.InputFieldRecord;
  388. ***** ^ not supported yet
  389. 156 BEGIN
  390. 157 IF M2Strings.Length(text) # width THEN
  391. ***** ^ not supported yet
  392. ***** ^ not supported yet
  393. ***** ^ not supported yet
  394. 158 StrEdit.LeftJustify( text, width );
  395. ***** ^ not supported yet
  396. ***** ^ not supported yet
  397. ***** ^ not supported yet
  398. ***** ^ not supported yet
  399. 159 END;
  400. 160 IF NOT GenLists.Initialized( TheFrame^.FieldList ) THEN
  401. ***** ^ not supported yet
  402. ***** ^ not supported yet
  403. ***** ^ not supported yet
  404. ***** ^ not supported yet
  405. 161 GenLists.NewList( TheFrame^.FieldList );
  406. ***** ^ not supported yet
  407. ***** ^ not supported yet
  408. ***** ^ not supported yet
  409. ***** ^ not supported yet
  410. 162 ScrnUtl1.PutFrameLists( TheFrame );
  411. ***** ^ not supported yet
  412. ***** ^ not supported yet
  413. ***** ^ not supported yet
  414. 163 (*Make sure the new FieldList gets inserted into
  415. 164 TheFrame's .self list. *)
  416. 165 END;
  417. 166 ScrnUtl2.CreateImageElement( TmpRec, Col, Row, TheFrame^.normfor,
  418. ***** ^ not supported yet
  419. ***** ^ not supported yet
  420. ***** ^ not supported yet
  421. ***** ^ not supported yet
  422. ***** ^ not supported yet
  423. 167 TheFrame^.normbak, TheFrame^.normatrb, GenLists.ListLength(
  424. ***** ^ not supported yet
  425. ***** ^ not supported yet
  426. ***** ^ not supported yet
  427. ***** ^ not supported yet
  428. ***** ^ not supported yet
  429. ***** ^ not supported yet
  430. 168 TheFrame^.FieldList ) + 1, text );
  431. ***** ^ not supported yet
  432. ***** ^ not supported yet
  433. ***** ^ not supported yet
  434. 169 ScrnUtl2.AddImageElement( TheFrame, TmpRec, ImageNum );
  435. ***** ^ not supported yet
  436. ***** ^ not supported yet
  437. ***** ^ not supported yet
  438. ***** ^ not supported yet
  439. ***** ^ not supported yet
  440. 170 ScrnTypes.InitField( FieldRec );
  441. ***** ^ not supported yet
  442. ***** ^ not supported yet
  443. ***** ^ not supported yet
  444. 171 FieldRec.ImageNum := ImageNum;
  445. ***** ^ not supported yet
  446. ***** ^ not supported yet
  447. 172 FieldRec.typ := ScrnTypes.StringCode;
  448. ***** ^ not supported yet
  449. ***** ^ not supported yet
  450. ***** ^ not supported yet
  451. ***** ^ not supported yet
  452. 173 FieldRec.req := FALSE;
  453. ***** ^ not supported yet
  454. ***** ^ not supported yet
  455. 174 ScrnUtl1.PutFieldRec( FieldRec, TheFrame, AfterLastElmt );
  456. ***** ^ not supported yet
  457. ***** ^ not supported yet
  458. ***** ^ not supported yet
  459. ***** ^ not supported yet
  460. ***** ^ not supported yet
  461. 175 IF TheFrame^.action = 'W' THEN
  462. ***** ^ not supported yet
  463. ***** ^ not supported yet
  464. 176 TheFrame^.action := 'I';
  465. ***** ^ not supported yet
  466. ***** ^ not supported yet
  467. 177 END;
  468. 178 (* The action char is lower case while the frame is
  469. 179 active. *)
  470. 180 IF TheFrame^.action = 'w' THEN
  471. ***** ^ not supported yet
  472. ***** ^ not supported yet
  473. 181 TheFrame^.action := 'i';
  474. ***** ^ not supported yet
  475. ***** ^ not supported yet
  476. 182 END;
  477. 183 END AddStrField;
  478. ***** ^ not supported yet
  479. 184
  480. 185
  481. 186 PROCEDURE AddMenuItem( VAR TheFrame : ScrnTypes.DisplayFrame;
  482. ***** ^ not supported yet
  483. 187 Col, Row : CARDINAL; text : ARRAY OF CHAR; width, MenuKey: CARDINAL;
  484. ***** ^ not supported yet
  485. 188 ReturnVal : ARRAY OF CHAR );
  486. ***** ^ not supported yet
  487. 189 VAR
  488. 190 FieldRec: ScrnTypes.InputFieldRecord;
  489. ***** ^ not supported yet
  490. 191 BEGIN
  491. 192 AddStrField( TheFrame, Col, Row, text, width );
  492. ***** ^ not supported yet
  493. ***** ^ not supported yet
  494. ***** ^ not supported yet
  495. ***** ^ not supported yet
  496. 193 ScrnUtl1.GetFieldRec( TheFrame, ScrnUtl1.FieldListTotal(TheFrame),
  497. ***** ^ not supported yet
  498. ***** ^ not supported yet
  499. ***** ^ not supported yet
  500. ***** ^ not supported yet
  501. ***** ^ not supported yet
  502. ***** ^ not supported yet
  503. 194 FieldRec );
  504. ***** ^ not supported yet
  505. 195 FieldRec.typ := ScrnTypes.GotoCode;
  506. ***** ^ not supported yet
  507. ***** ^ not supported yet
  508. ***** ^ not supported yet
  509. ***** ^ not supported yet
  510. 196 FieldRec.MenuKey := MenuKey;
  511. ***** ^ not supported yet
  512. ***** ^ not supported yet
  513. 197 M2Strings.Assign( ReturnVal, FieldRec.ReturnVal );
  514. ***** ^ not supported yet
  515. ***** ^ not supported yet
  516. ***** ^ not supported yet
  517. ***** ^ not supported yet
  518. ***** ^ not supported yet
  519. 198 ScrnUtl1.PutFieldRec( FieldRec, TheFrame,
  520. ***** ^ not supported yet
  521. ***** ^ not supported yet
  522. ***** ^ not supported yet
  523. ***** ^ not supported yet
  524. 199 ScrnUtl1.FieldListTotal(TheFrame) );
  525. ***** ^ not supported yet
  526. ***** ^ not supported yet
  527. ***** ^ not supported yet
  528. 200 IF TheFrame^.action = 'W' THEN
  529. ***** ^ not supported yet
  530. ***** ^ not supported yet
  531. 201 TheFrame^.action := 'I';
  532. ***** ^ not supported yet
  533. ***** ^ not supported yet
  534. 202 END;
  535. 203 (* The action char is lower case while the frame is
  536. 204 active. *)
  537. 205 IF TheFrame^.action = 'w' THEN
  538. ***** ^ not supported yet
  539. ***** ^ not supported yet
  540. 206 TheFrame^.action := 'i';
  541. ***** ^ not supported yet
  542. ***** ^ not supported yet
  543. 207 END;
  544. 208 END AddMenuItem;
  545. ***** ^ not supported yet
  546. 209
  547. 210
  548. 211 PROCEDURE ListBox( TheDspFile: ScrnTypes.DisplayFile;
  549. ***** ^ not supported yet
  550. 212 FormFrameName: ARRAY OF CHAR; TheList: GenLists.GenList;
  551. ***** ^ not supported yet
  552. ***** ^ not supported yet
  553. 213 VAR ItemChosen: ARRAY OF CHAR; VAR NextFrame:
  554. ***** ^ not supported yet
  555. 214 ScrnTypes.AFrameName ): BOOLEAN;
  556. ***** ^ not supported yet
  557. 215 VAR
  558. 216 TmpFrame: ScrnTypes.DisplayFrame;
  559. ***** ^ not supported yet
  560. 217 AnItemWasChosen: BOOLEAN;
  561. 218 BEGIN
  562. 219 ScrnTypes.InitDisplayFrame( TmpFrame, VWindows.CurrentWindow );
  563. ***** ^ not supported yet
  564. ***** ^ not supported yet
  565. ***** ^ not supported yet
  566. ***** ^ not supported yet
  567. ***** ^ not supported yet
  568. 220 DspFiles.ReadFrame( TheDspFile, TmpFrame, FormFrameName );
  569. ***** ^ not supported yet
  570. ***** ^ not supported yet
  571. ***** ^ not supported yet
  572. ***** ^ not supported yet
  573. ***** ^ not supported yet
  574. 221 ScrnUtl2.ChoiceListToFrame( TheList, TmpFrame );
  575. ***** ^ not supported yet
  576. ***** ^ not supported yet
  577. ***** ^ not supported yet
  578. ***** ^ not supported yet
  579. 222 FramePainter.ShowDisplayFrame( TmpFrame, 0, 0, 0, 0 );
  580. ***** ^ not supported yet
  581. ***** ^ not supported yet
  582. ***** ^ not supported yet
  583. ***** ^ not supported yet
  584. 223 InputManager.ControlFrame( TmpFrame, 0, '', FALSE, NextFrame );
  585. ***** ^ not supported yet
  586. ***** ^ not supported yet
  587. ***** ^ not supported yet
  588. ***** ^ not supported yet
  589. 224 AnItemWasChosen := (NextFrame[0] = 0C);
  590. ***** ^ not supported yet
  591. ***** ^ not supported yet
  592. 225 (* Dangerous. We are relying here on knowlegde that
  593. 226 ChoiceListToFrame makes '' the return value for each
  594. 227 choice. *)
  595. 228 ScrnUtl1.GetFieldText( TmpFrame,
  596. ***** ^ not supported yet
  597. ***** ^ not supported yet
  598. ***** ^ not supported yet
  599. 229 TmpFrame^.CurrentField, ItemChosen );
  600. ***** ^ not supported yet
  601. ***** ^ not supported yet
  602. ***** ^ not supported yet
  603. 230 ScrnUtl2.CloseDisplayFrame( TmpFrame );
  604. ***** ^ not supported yet
  605. ***** ^ not supported yet
  606. ***** ^ not supported yet
  607. 231 RETURN AnItemWasChosen;
  608. 232 END ListBox;
  609. ***** ^ not supported yet
  610. 233
  611. 234
  612. 235 PROCEDURE ChangeField(VAR TheFrame : ScrnTypes.DisplayFrame;
  613. ***** ^ not supported yet
  614. 236 TheStr : ARRAY OF CHAR; FieldName : ARRAY OF
  615. ***** ^ not supported yet
  616. 237 CHAR; PreserveLength: BOOLEAN);
  617. ***** ^ not supported yet
  618. 238 VAR
  619. 239 padding: ARRAY [0..79] OF CHAR;
  620. ***** ^ not supported yet
  621. ***** ^ not supported yet
  622. 240 OldLngth, NewLngth: CARDINAL;
  623. 241 FieldPtr : ScrnTypes.InputFieldPtr;
  624. ***** ^ not supported yet
  625. 242 ImageRec: ScrnTypes.ImageElement;
  626. ***** ^ not supported yet
  627. 243 BEGIN
  628. 244 IF NOT ScrnUtl1.FindField( TheFrame, FieldName,
  629. ***** ^ not supported yet
  630. ***** ^ not supported yet
  631. ***** ^ not supported yet
  632. ***** ^ not supported yet
  633. 245 FieldPtr, ImageRec ) THEN
  634. ***** ^ not supported yet
  635. ***** ^ not supported yet
  636. 246 NotFieldWarning( FieldName, TheFrame^.ThisFrame );
  637. ***** ^ not supported yet
  638. ***** ^ not supported yet
  639. ***** ^ not supported yet
  640. ***** ^ not supported yet
  641. 247 END;
  642. 248 FieldPtr^.ChangeMade := TRUE;
  643. ***** ^ not supported yet
  644. ***** ^ not supported yet
  645. 249 IF PreserveLength THEN
  646. 250 LowLevel.Fill( SYSTEM.ADR(padding), HIGH(padding) + 1, ' ' );
  647. ***** ^ not supported yet
  648. ***** ^ not supported yet
  649. ***** ^ not supported yet
  650. ***** ^ not supported yet
  651. ***** ^ not supported yet
  652. ***** ^ undeclared identifier
  653. ***** ^ not supported yet
  654. ***** ^ not supported yet
  655. 251 OldLngth := M2Strings.Length( ImageRec.text );
  656. ***** ^ not supported yet
  657. ***** ^ not supported yet
  658. ***** ^ not supported yet
  659. ***** ^ not supported yet
  660. 252 NewLngth := M2Strings.Length( TheStr );
  661. ***** ^ not supported yet
  662. ***** ^ not supported yet
  663. ***** ^ not supported yet
  664. 253 M2Strings.Assign(TheStr, ImageRec.text );
  665. ***** ^ not supported yet
  666. ***** ^ not supported yet
  667. ***** ^ not supported yet
  668. ***** ^ not supported yet
  669. ***** ^ not supported yet
  670. 254 IF OldLngth > NewLngth THEN
  671. 255 StrEdit.SetLength( padding, OldLngth - NewLngth );
  672. ***** ^ not supported yet
  673. ***** ^ not supported yet
  674. ***** ^ not supported yet
  675. ***** ^ not supported yet
  676. 256 StrEdit.Append( ImageRec.text, padding );
  677. ***** ^ not supported yet
  678. ***** ^ not supported yet
  679. ***** ^ not supported yet
  680. ***** ^ not supported yet
  681. ***** ^ not supported yet
  682. 257 ELSE
  683. 258 StrEdit.SetLength( ImageRec.text, OldLngth );
  684. ***** ^ not supported yet
  685. ***** ^ not supported yet
  686. ***** ^ not supported yet
  687. ***** ^ not supported yet
  688. ***** ^ not supported yet
  689. 259 END;
  690. 260 ELSE
  691. 261 M2Strings.Assign(TheStr, ImageRec.text);
  692. ***** ^ not supported yet
  693. ***** ^ not supported yet
  694. ***** ^ not supported yet
  695. ***** ^ not supported yet
  696. ***** ^ not supported yet
  697. 262 END;
  698. 263 ScrnUtl1.PutFieldImageRec( ImageRec, TheFrame, ImageRec.field );
  699. ***** ^ not supported yet
  700. ***** ^ not supported yet
  701. ***** ^ not supported yet
  702. ***** ^ not supported yet
  703. ***** ^ not supported yet
  704. ***** ^ not supported yet
  705. 264 END ChangeField;
  706. ***** ^ not supported yet
  707. 265
  708. 266
  709. 267 PROCEDURE CheckFieldName( TheFrame: ScrnTypes.DisplayFrame; FieldName:
  710. ***** ^ not supported yet
  711. 268 ARRAY OF CHAR );
  712. ***** ^ not supported yet
  713. 269 (*Displays a warning message if it can't find FieldName in TheFrame.*)
  714. 270 VAR
  715. 271 FieldPtr: ScrnTypes.InputFieldPtr;
  716. ***** ^ not supported yet
  717. 272 ImageRec: ScrnTypes.ImageElement;
  718. ***** ^ not supported yet
  719. 273 BEGIN
  720. 274 IF NOT ScrnUtl1.FindField( TheFrame, FieldName, FieldPtr, ImageRec ) THEN
  721. ***** ^ not supported yet
  722. ***** ^ not supported yet
  723. ***** ^ not supported yet
  724. ***** ^ not supported yet
  725. ***** ^ not supported yet
  726. ***** ^ not supported yet
  727. 275 NotFieldWarning( FieldName, TheFrame^.ThisFrame );
  728. ***** ^ not supported yet
  729. ***** ^ not supported yet
  730. ***** ^ not supported yet
  731. ***** ^ not supported yet
  732. 276 END;
  733. 277 END CheckFieldName;
  734. ***** ^ not supported yet
  735. 278
  736. 279
  737. 280 PROCEDURE Control( TheFrame: ScrnTypes.DisplayFrame );
  738. ***** ^ not supported yet
  739. 281 VAR
  740. 282 FrameName : ScrnTypes.AFrameName;
  741. ***** ^ not supported yet
  742. 283 (*This gets thrown away.*)
  743. 284 BEGIN
  744. 285 InputManager.ControlFrame( TheFrame, 0, '', FALSE, FrameName );
  745. ***** ^ not supported yet
  746. ***** ^ not supported yet
  747. ***** ^ not supported yet
  748. ***** ^ not supported yet
  749. 286 END Control;
  750. ***** ^ not supported yet
  751. 287
  752. 288
  753. 289 PROCEDURE FrameListSpot( FrameName: ARRAY OF CHAR;
  754. ***** ^ not supported yet
  755. 290 FrameList: GenLists.GenList ): CARDINAL;
  756. ***** ^ not supported yet
  757. 291 VAR
  758. 292 TypeCode, cnt, ListEnd: CARDINAL;
  759. 293 TmpFrame: ScrnTypes.DisplayFrameRec;
  760. ***** ^ not supported yet
  761. 294 BEGIN
  762. 295 cnt := 1;
  763. 296 ListEnd := GenLists.ListLength( FrameList );
  764. ***** ^ not supported yet
  765. ***** ^ not supported yet
  766. ***** ^ not supported yet
  767. 297 WHILE cnt < ListEnd DO
  768. 298 GenLists.GetElmt( FrameList, cnt, TmpFrame, TypeCode );
  769. ***** ^ not supported yet
  770. ***** ^ not supported yet
  771. ***** ^ not supported yet
  772. ***** ^ not supported yet
  773. ***** ^ not supported yet
  774. 299 IF PosUtils.Equal( TmpFrame.ThisFrame, FrameName ) THEN
  775. ***** ^ not supported yet
  776. ***** ^ not supported yet
  777. ***** ^ not supported yet
  778. ***** ^ not supported yet
  779. ***** ^ not supported yet
  780. 300 RETURN cnt;
  781. 301 END;
  782. 302 cnt := cnt + 2;
  783. 303 END;
  784. 304 RETURN 0;
  785. 305 END FrameListSpot;
  786. ***** ^ not supported yet
  787. 306
  788. 307
  789. 308 PROCEDURE AddToFrameList( TheFrame: ScrnTypes.DisplayFrame;
  790. ***** ^ not supported yet
  791. 309 VAR FrameList: GenLists.GenList );
  792. ***** ^ not supported yet
  793. 310 VAR
  794. 311 TmpList: GenLists.GenList;
  795. ***** ^ not supported yet
  796. 312 spot: CARDINAL;
  797. 313 SavedFlag : BOOLEAN;
  798. 314 BEGIN
  799. 315 spot := FrameListSpot( TheFrame^.ThisFrame, FrameList );
  800. ***** ^ not supported yet
  801. ***** ^ not supported yet
  802. ***** ^ not supported yet
  803. ***** ^ not supported yet
  804. 316 IF spot > 0 THEN
  805. 317 (*A frame of this name is already in the FrameList. We can't just
  806. 318 delete it and add the new copy because they probably share lists;
  807. 319 look at how GetFrameFromList gives the gotten frame pointers
  808. 320 directly into its own sublists.*)
  809. 321 RETURN;
  810. 322 END;
  811. 323 TheFrame^.CurrentField := 1;
  812. ***** ^ not supported yet
  813. ***** ^ not supported yet
  814. 324 SavedFlag := TheFrame^.SelfSharedWithFile;
  815. ***** ^ not supported yet
  816. ***** ^ not supported yet
  817. 325 (* Added this SavedFlag thing on 2 Nov 88 at suggestion
  818. 326 of John McMonagle to prevent memory loss problems. *)
  819. 327 TheFrame^.SelfSharedWithFile := TRUE;
  820. ***** ^ not supported yet
  821. ***** ^ not supported yet
  822. 328 (* We're using this to prevent ReadFrame from
  823. 329 disposing of the .self list next time. *)
  824. 330 GenLists.ListInsert( TheFrame^, 0, FrameList, AfterLastElmt );
  825. ***** ^ not supported yet
  826. ***** ^ not supported yet
  827. ***** ^ not supported yet
  828. ***** ^ not supported yet
  829. ***** ^ not supported yet
  830. 331 TheFrame^.SelfSharedWithFile := SavedFlag;
  831. ***** ^ not supported yet
  832. ***** ^ not supported yet
  833. 332 GenLists.CopyList( TheFrame^.self, TmpList );
  834. ***** ^ not supported yet
  835. ***** ^ not supported yet
  836. ***** ^ not supported yet
  837. ***** ^ not supported yet
  838. ***** ^ not supported yet
  839. 333 (*We copy the self list so it won't go away when the
  840. 334 ListBuf changes.*)
  841. 335 GenLists.ListInsert( TmpList, GenLists.ListCode,
  842. ***** ^ not supported yet
  843. ***** ^ not supported yet
  844. ***** ^ not supported yet
  845. ***** ^ not supported yet
  846. ***** ^ not supported yet
  847. 336 FrameList, AfterLastElmt );
  848. ***** ^ not supported yet
  849. ***** ^ not supported yet
  850. 337 END AddToFrameList;
  851. ***** ^ not supported yet
  852. 338
  853. 339
  854. 340 PROCEDURE DisposeFrameList( VAR FrameList: GenLists.GenList );
  855. ***** ^ not supported yet
  856. 341 VAR
  857. 342 ListEnd, cnt, dumc, TypeCode: CARDINAL;
  858. 343 TmpFrame: ScrnTypes.DisplayFrame;
  859. ***** ^ not supported yet
  860. 344 BEGIN
  861. 345 ListEnd := GenLists.ListLength( FrameList );
  862. ***** ^ not supported yet
  863. ***** ^ not supported yet
  864. ***** ^ not supported yet
  865. 346 cnt := 1;
  866. 347 WHILE cnt < ListEnd DO
  867. 348 GenLists.GetElmtAdr( FrameList, cnt, TmpFrame, dumc, TypeCode );
  868. ***** ^ not supported yet
  869. ***** ^ not supported yet
  870. ***** ^ not supported yet
  871. ***** ^ not supported yet
  872. ***** ^ not supported yet
  873. 349 FrameManager.FrameDeactivated( TmpFrame );
  874. ***** ^ not supported yet
  875. ***** ^ not supported yet
  876. ***** ^ not supported yet
  877. 350 cnt := cnt + 2;
  878. 351 END;
  879. 352 GenLists.DisposeList( FrameList );
  880. ***** ^ not supported yet
  881. ***** ^ not supported yet
  882. ***** ^ not supported yet
  883. 353 END DisposeFrameList;
  884. ***** ^ not supported yet
  885. 354
  886. 355
  887. 356 PROCEDURE DeleteFrom( VAR TheFrame: ScrnTypes.DisplayFrame;
  888. ***** ^ not supported yet
  889. 357 VAR FrameList: GenLists.GenList );
  890. ***** ^ not supported yet
  891. 358 VAR
  892. 359 TmpList: GenLists.GenList;
  893. ***** ^ not supported yet
  894. 360 spot: CARDINAL;
  895. 361 BEGIN
  896. 362 spot := FrameListSpot( TheFrame^.ThisFrame, FrameList );
  897. ***** ^ not supported yet
  898. ***** ^ not supported yet
  899. ***** ^ not supported yet
  900. ***** ^ not supported yet
  901. 363 IF spot > 0 THEN
  902. 364 GenLists.GetChildList( FrameList, spot + 1, TmpList );
  903. ***** ^ not supported yet
  904. ***** ^ not supported yet
  905. ***** ^ not supported yet
  906. ***** ^ not supported yet
  907. 365 IF GenLists.SameList( TmpList, TheFrame^.self ) THEN
  908. ***** ^ not supported yet
  909. ***** ^ not supported yet
  910. ***** ^ not supported yet
  911. ***** ^ not supported yet
  912. ***** ^ not supported yet
  913. 366 (*We're going to confuse the hell out of the programmer
  914. 367 who deletes a frame from a FrameList after retrieving it
  915. 368 but before using it. We leave some tracks to make it
  916. 369 easier to find the problem.*)
  917. 370 StrEdit.AssignStr( 'DeleteFrom', TheFrame^.ThisFrame );
  918. ***** ^ not supported yet
  919. ***** ^ not supported yet
  920. ***** ^ not supported yet
  921. ***** ^ not supported yet
  922. ***** ^ not supported yet
  923. 371 GenLists.NilList( TheFrame^.self );
  924. ***** ^ not supported yet
  925. ***** ^ not supported yet
  926. ***** ^ not supported yet
  927. ***** ^ not supported yet
  928. 372 GenLists.NilList( TheFrame^.ImageList );
  929. ***** ^ not supported yet
  930. ***** ^ not supported yet
  931. ***** ^ not supported yet
  932. ***** ^ not supported yet
  933. 373 GenLists.NilList( TheFrame^.FieldList );
  934. ***** ^ not supported yet
  935. ***** ^ not supported yet
  936. ***** ^ not supported yet
  937. ***** ^ not supported yet
  938. 374 END;
  939. 375 GenLists.ListDelete( FrameList, spot, 2 );
  940. ***** ^ not supported yet
  941. ***** ^ not supported yet
  942. ***** ^ not supported yet
  943. ***** ^ not supported yet
  944. 376 END;
  945. 377 END DeleteFrom;
  946. ***** ^ not supported yet
  947. 378
  948. 379
  949. 380 PROCEDURE PointFrameAtList( FrameList: GenLists.GenList;
  950. ***** ^ not supported yet
  951. 381 FrameName: ARRAY OF CHAR; VAR TheFrame:
  952. ***** ^ not supported yet
  953. 382 ScrnTypes.DisplayFrame ): BOOLEAN;
  954. ***** ^ not supported yet
  955. 383 (* The difference between this and GetFrameFromList is that
  956. 384 PointFrameAtList forces TheFrame to point at the DisplayFrameRec
  957. 385 which is stored in the list; GetFrameFromList copies the
  958. 386 DisplayFrameRec out into whatever TheFrame happens to be
  959. 387 pointing at. *)
  960. 388 VAR
  961. 389 dumc, spot, TypeCode: CARDINAL;
  962. 390 BEGIN
  963. 391 spot := FrameListSpot( FrameName, FrameList );
  964. ***** ^ not supported yet
  965. ***** ^ not supported yet
  966. ***** ^ not supported yet
  967. 392 IF spot = 0 THEN
  968. 393 RETURN FALSE;
  969. 394 END;
  970. 395 GenLists.GetElmtAdr( FrameList, spot, TheFrame, dumc, TypeCode );
  971. ***** ^ not supported yet
  972. ***** ^ not supported yet
  973. ***** ^ not supported yet
  974. ***** ^ not supported yet
  975. ***** ^ not supported yet
  976. 396 GenLists.GetChildList( FrameList, spot + 1, TheFrame^.self );
  977. ***** ^ not supported yet
  978. ***** ^ not supported yet
  979. ***** ^ not supported yet
  980. ***** ^ not supported yet
  981. ***** ^ not supported yet
  982. 397 ScrnUtl1.GetFrameLists( TheFrame );
  983. ***** ^ not supported yet
  984. ***** ^ not supported yet
  985. ***** ^ not supported yet
  986. 398 TheFrame^.CurrentField := GenLists.ElmtNow(TheFrame^.FieldList);
  987. ***** ^ not supported yet
  988. ***** ^ not supported yet
  989. ***** ^ not supported yet
  990. ***** ^ not supported yet
  991. ***** ^ not supported yet
  992. ***** ^ not supported yet
  993. 399 (*ElmtNow returns 0 if the list is NIL.*)
  994. 400 RETURN TRUE;
  995. 401 END PointFrameAtList;
  996. ***** ^ not supported yet
  997. 402
  998. 403
  999. 404 PROCEDURE GetFrameFromList( FrameList: GenLists.GenList;
  1000. ***** ^ not supported yet
  1001. 405 FrameName: ARRAY OF CHAR; VAR TheFrame:
  1002. ***** ^ not supported yet
  1003. 406 ScrnTypes.DisplayFrame ): BOOLEAN;
  1004. ***** ^ not supported yet
  1005. 407 VAR
  1006. 408 spot, TypeCode: CARDINAL;
  1007. 409 BEGIN
  1008. 410 spot := FrameListSpot( FrameName, FrameList );
  1009. ***** ^ not supported yet
  1010. ***** ^ not supported yet
  1011. ***** ^ not supported yet
  1012. 411 IF spot = 0 THEN
  1013. 412 RETURN FALSE;
  1014. 413 END;
  1015. 414 IF GenLists.SameList( TheFrame^.self,
  1016. ***** ^ not supported yet
  1017. ***** ^ not supported yet
  1018. ***** ^ not supported yet
  1019. ***** ^ not supported yet
  1020. 415 TheFrame^.FromFile^.ListBuf ) THEN
  1021. ***** ^ not supported yet
  1022. ***** ^ not supported yet
  1023. ***** ^ not supported yet
  1024. 416 (*Make sure the NdxFile system doesn't think it is still
  1025. 417 managing this frame.*)
  1026. 418 GenLists.DisposeList( TheFrame^.FromFile^.ListBuf );
  1027. ***** ^ not supported yet
  1028. ***** ^ not supported yet
  1029. ***** ^ not supported yet
  1030. ***** ^ not supported yet
  1031. ***** ^ not supported yet
  1032. 419 TheFrame^.FromFile^.BufRecName[0] := 0C;
  1033. ***** ^ not supported yet
  1034. ***** ^ not supported yet
  1035. ***** ^ not supported yet
  1036. ***** ^ not supported yet
  1037. 420 END;
  1038. 421 (*Note that we don't dispose of TheFrame's self list if
  1039. 422 it's not part of the list buffer because it may be part
  1040. 423 of the FrameList. Means someone else has to be in charge
  1041. 424 of disposing of the self list if it was created by CopyList.*)
  1042. 425 GenLists.GetElmt( FrameList, spot, TheFrame^, TypeCode );
  1043. ***** ^ not supported yet
  1044. ***** ^ not supported yet
  1045. ***** ^ not supported yet
  1046. ***** ^ not supported yet
  1047. ***** ^ not supported yet
  1048. 426 GenLists.GetChildList( FrameList, spot + 1, TheFrame^.self );
  1049. ***** ^ not supported yet
  1050. ***** ^ not supported yet
  1051. ***** ^ not supported yet
  1052. ***** ^ not supported yet
  1053. ***** ^ not supported yet
  1054. 427 ScrnUtl1.GetFrameLists( TheFrame );
  1055. ***** ^ not supported yet
  1056. ***** ^ not supported yet
  1057. ***** ^ not supported yet
  1058. 428 TheFrame^.CurrentField := GenLists.ElmtNow(TheFrame^.FieldList);
  1059. ***** ^ not supported yet
  1060. ***** ^ not supported yet
  1061. ***** ^ not supported yet
  1062. ***** ^ not supported yet
  1063. ***** ^ not supported yet
  1064. ***** ^ not supported yet
  1065. 429 (*ElmtNow returns 0 if the list is NIL.*)
  1066. 430 RETURN TRUE;
  1067. 431 END GetFrameFromList;
  1068. ***** ^ not supported yet
  1069. 432
  1070. 433
  1071. 434 PROCEDURE LoadFrameList( dfile: ScrnTypes.DisplayFile;
  1072. ***** ^ not supported yet
  1073. 435 StartFrame: ARRAY OF CHAR; VAR FrameList: GenLists.GenList );
  1074. ***** ^ not supported yet
  1075. ***** ^ not supported yet
  1076. 436 VAR
  1077. 437 TmpFrame: ScrnTypes.DisplayFrame;
  1078. ***** ^ not supported yet
  1079. 438 FrameAbove, FrameBelow, FrameRight, FrameLeft: ScrnTypes.AFrameName;
  1080. ***** ^ not supported yet
  1081. 439 BEGIN
  1082. 440 IF NOT FrameExists( dfile, StartFrame ) THEN
  1083. ***** ^ undeclared identifier
  1084. ***** ^ not supported yet
  1085. ***** ^ not supported yet
  1086. 441 RETURN;
  1087. 442 END;
  1088. 443 IF FrameListSpot( StartFrame, FrameList ) > 0 THEN
  1089. ***** ^ not supported yet
  1090. ***** ^ not supported yet
  1091. ***** ^ not supported yet
  1092. 444 (*StartFrame is already in FrameList *)
  1093. 445 RETURN;
  1094. 446 END;
  1095. 447 ScrnTypes.InitDisplayFrame( TmpFrame, VWindows.CurrentWindow );
  1096. ***** ^ not supported yet
  1097. ***** ^ not supported yet
  1098. ***** ^ not supported yet
  1099. ***** ^ not supported yet
  1100. ***** ^ not supported yet
  1101. 448 DspFiles.ReadFrameFast( dfile, TmpFrame, StartFrame );
  1102. ***** ^ not supported yet
  1103. ***** ^ not supported yet
  1104. ***** ^ not supported yet
  1105. ***** ^ not supported yet
  1106. ***** ^ not supported yet
  1107. 449 (* It's okay here to use ReadFrameFast, which does not
  1108. 450 copy the file's listbuf, because AddToFrameList is
  1109. 451 about to make a copy anyway. *)
  1110. 452 AddToFrameList( TmpFrame, FrameList );
  1111. ***** ^ not supported yet
  1112. ***** ^ not supported yet
  1113. ***** ^ not supported yet
  1114. 453 ScrnUtl1.GetFrameLinks( TmpFrame, FrameAbove, FrameBelow,
  1115. ***** ^ not supported yet
  1116. ***** ^ not supported yet
  1117. ***** ^ not supported yet
  1118. ***** ^ not supported yet
  1119. ***** ^ not supported yet
  1120. 454 FrameLeft, FrameRight );
  1121. ***** ^ not supported yet
  1122. ***** ^ not supported yet
  1123. 455 ScrnUtl2.CloseDisplayFrame( TmpFrame );
  1124. ***** ^ not supported yet
  1125. ***** ^ not supported yet
  1126. ***** ^ not supported yet
  1127. 456 IF FrameAbove[0] # 0C THEN
  1128. ***** ^ not supported yet
  1129. ***** ^ not supported yet
  1130. 457 LoadFrameList( dfile, FrameAbove, FrameList );
  1131. ***** ^ not supported yet
  1132. ***** ^ not supported yet
  1133. ***** ^ not supported yet
  1134. ***** ^ not supported yet
  1135. 458 END;
  1136. 459 IF FrameBelow[0] # 0C THEN
  1137. ***** ^ not supported yet
  1138. ***** ^ not supported yet
  1139. 460 LoadFrameList( dfile, FrameBelow, FrameList );
  1140. ***** ^ not supported yet
  1141. ***** ^ not supported yet
  1142. ***** ^ not supported yet
  1143. ***** ^ not supported yet
  1144. 461 END;
  1145. 462 IF FrameLeft[0] # 0C THEN
  1146. ***** ^ not supported yet
  1147. ***** ^ not supported yet
  1148. 463 LoadFrameList( dfile, FrameLeft, FrameList );
  1149. ***** ^ not supported yet
  1150. ***** ^ not supported yet
  1151. ***** ^ not supported yet
  1152. ***** ^ not supported yet
  1153. 464 END;
  1154. 465 IF FrameRight[0] # 0C THEN
  1155. ***** ^ not supported yet
  1156. ***** ^ not supported yet
  1157. 466 LoadFrameList( dfile, FrameRight, FrameList );
  1158. ***** ^ not supported yet
  1159. ***** ^ not supported yet
  1160. ***** ^ not supported yet
  1161. ***** ^ not supported yet
  1162. 467 END;
  1163. 468 END LoadFrameList;
  1164. ***** ^ not supported yet
  1165. 469
  1166. 470
  1167. 471 PROCEDURE ControlSeparately( FrameList: GenLists.GenList;
  1168. ***** ^ not supported yet
  1169. 472 VAR NextFrame: ScrnTypes.AFrameName; VAR SelectedChar:
  1170. ***** ^ not supported yet
  1171. 473 CHAR; VAR EndingFrame: ScrnTypes.AFrameName );
  1172. ***** ^ not supported yet
  1173. 474 VAR
  1174. 475 FrameAbove, FrameBelow, FrameRight, FrameLeft: ScrnTypes.AFrameName;
  1175. ***** ^ not supported yet
  1176. 476 TmpFrame: ScrnTypes.DisplayFrame;
  1177. ***** ^ not supported yet
  1178. 477 BEGIN
  1179. 478 (* Notice that we don't initialize TmpFrame because we are
  1180. 479 forcing it to point into the FrameList. *)
  1181. 480 LOOP
  1182. 481 IF NOT PointFrameAtList( FrameList, NextFrame, TmpFrame ) THEN
  1183. ***** ^ not supported yet
  1184. ***** ^ not supported yet
  1185. ***** ^ not supported yet
  1186. ***** ^ not supported yet
  1187. 482 EXIT;
  1188. 483 END;
  1189. 484 M2Strings.Assign( NextFrame, EndingFrame );
  1190. ***** ^ not supported yet
  1191. ***** ^ not supported yet
  1192. ***** ^ not supported yet
  1193. ***** ^ not supported yet
  1194. 485 ScrnUtl1.GetFrameLinks( TmpFrame, FrameAbove, FrameBelow,
  1195. ***** ^ not supported yet
  1196. ***** ^ not supported yet
  1197. ***** ^ not supported yet
  1198. ***** ^ not supported yet
  1199. ***** ^ not supported yet
  1200. 486 FrameLeft, FrameRight );
  1201. ***** ^ not supported yet
  1202. ***** ^ not supported yet
  1203. 487 FramePainter.ShowDisplayFrame( TmpFrame, 0, 0, 0, 0 );
  1204. ***** ^ not supported yet
  1205. ***** ^ not supported yet
  1206. ***** ^ not supported yet
  1207. ***** ^ not supported yet
  1208. 488 InputManager.ControlFrame( TmpFrame, TmpFrame^.CurrentField, '',
  1209. ***** ^ not supported yet
  1210. ***** ^ not supported yet
  1211. ***** ^ not supported yet
  1212. ***** ^ not supported yet
  1213. ***** ^ not supported yet
  1214. 489 FALSE, NextFrame );
  1215. ***** ^ not supported yet
  1216. 490 SelectedChar := ScrnUtl1.SelectedChar( TmpFrame );
  1217. ***** ^ not supported yet
  1218. ***** ^ not supported yet
  1219. ***** ^ not supported yet
  1220. 491 END;
  1221. 492 END ControlSeparately;
  1222. ***** ^ not supported yet
  1223. 493
  1224. 494
  1225. 495 PROCEDURE ControlFrameList( FrameList: GenLists.GenList;
  1226. ***** ^ not supported yet
  1227. 496 TheFrame: ScrnTypes.DisplayFrame; VAR NextFrame:
  1228. ***** ^ not supported yet
  1229. 497 ScrnTypes.AFrameName; VAR SelectedChar: CHAR; VAR
  1230. ***** ^ not supported yet
  1231. 498 EndingFrame: ScrnTypes.AFrameName );
  1232. ***** ^ not supported yet
  1233. 499 VAR
  1234. 500 FrameAbove, FrameBelow, FrameRight, FrameLeft: ScrnTypes.AFrameName;
  1235. ***** ^ not supported yet
  1236. 501 BEGIN
  1237. 502 LOOP
  1238. 503 IF NOT GetFrameFromList( FrameList, NextFrame, TheFrame ) THEN
  1239. ***** ^ not supported yet
  1240. ***** ^ not supported yet
  1241. ***** ^ not supported yet
  1242. ***** ^ not supported yet
  1243. 504 EXIT;
  1244. 505 END;
  1245. 506 M2Strings.Assign( NextFrame, EndingFrame );
  1246. ***** ^ not supported yet
  1247. ***** ^ not supported yet
  1248. ***** ^ not supported yet
  1249. ***** ^ not supported yet
  1250. 507 ScrnUtl1.GetFrameLinks( TheFrame, FrameAbove, FrameBelow,
  1251. ***** ^ not supported yet
  1252. ***** ^ not supported yet
  1253. ***** ^ not supported yet
  1254. ***** ^ not supported yet
  1255. ***** ^ not supported yet
  1256. 508 FrameLeft, FrameRight );
  1257. ***** ^ not supported yet
  1258. ***** ^ not supported yet
  1259. 509 FramePainter.ShowDisplayFrame( TheFrame, 0, 0, 0, 0 );
  1260. ***** ^ not supported yet
  1261. ***** ^ not supported yet
  1262. ***** ^ not supported yet
  1263. ***** ^ not supported yet
  1264. 510 InputManager.ControlFrame( TheFrame, TheFrame^.CurrentField, '',
  1265. ***** ^ not supported yet
  1266. ***** ^ not supported yet
  1267. ***** ^ not supported yet
  1268. ***** ^ not supported yet
  1269. ***** ^ not supported yet
  1270. 511 FALSE, NextFrame );
  1271. ***** ^ not supported yet
  1272. 512 SelectedChar := ScrnUtl1.SelectedChar( TheFrame );
  1273. ***** ^ not supported yet
  1274. ***** ^ not supported yet
  1275. ***** ^ not supported yet
  1276. 513 END;
  1277. 514 END ControlFrameList;
  1278. ***** ^ not supported yet
  1279. 515
  1280. 516
  1281. 517 PROCEDURE ControlFrameGroup( TheFrame: ScrnTypes.DisplayFrame;
  1282. ***** ^ not supported yet
  1283. 518 VAR NextFrame: ScrnTypes.AFrameName; VAR SelectedChar: CHAR;
  1284. ***** ^ not supported yet
  1285. 519 VAR EndingFrame: ScrnTypes.AFrameName );
  1286. ***** ^ not supported yet
  1287. 520
  1288. 521 VAR
  1289. 522 FrameList : GenLists.GenList;
  1290. ***** ^ not supported yet
  1291. 523
  1292. 524 BEGIN
  1293. 525 GenLists.NewList( FrameList );
  1294. ***** ^ not supported yet
  1295. ***** ^ not supported yet
  1296. ***** ^ not supported yet
  1297. 526 LoadFrameList( TheFrame^.FromFile, NextFrame, FrameList );
  1298. ***** ^ not supported yet
  1299. ***** ^ not supported yet
  1300. ***** ^ not supported yet
  1301. ***** ^ not supported yet
  1302. ***** ^ not supported yet
  1303. 527 ControlFrameList( FrameList, TheFrame, NextFrame, SelectedChar,
  1304. ***** ^ not supported yet
  1305. ***** ^ not supported yet
  1306. ***** ^ not supported yet
  1307. ***** ^ not supported yet
  1308. 528 EndingFrame );
  1309. ***** ^ not supported yet
  1310. 529 DisposeFrameList( FrameList );
  1311. ***** ^ not supported yet
  1312. ***** ^ not supported yet
  1313. 530 END ControlFrameGroup;
  1314. ***** ^ not supported yet
  1315. 531
  1316. 532
  1317. 533 PROCEDURE FrameExists( TheScreenFile: ScrnTypes.DisplayFile;
  1318. ***** ^ not supported yet
  1319. 534 FrameName: ARRAY OF CHAR ): BOOLEAN;
  1320. ***** ^ not supported yet
  1321. 535 VAR
  1322. 536 duml: LONGINT;
  1323. 537 dumc: CARDINAL;
  1324. 538 BEGIN
  1325. 539 StrEdit.CrunchBlanks( FrameName );
  1326. ***** ^ not supported yet
  1327. ***** ^ not supported yet
  1328. ***** ^ not supported yet
  1329. 540 RETURN NdxBones.FindRecord( TheScreenFile, FrameName, duml,
  1330. ***** ^ not supported yet
  1331. ***** ^ not supported yet
  1332. ***** ^ not supported yet
  1333. ***** ^ not supported yet
  1334. 541 dumc, dumc );
  1335. ***** ^ not supported yet
  1336. 542 END FrameExists;
  1337. ***** ^ not supported yet
  1338. 543
  1339. 544
  1340. 545 PROCEDURE FrameSequence( TheFrame: ScrnTypes.DisplayFrame;
  1341. ***** ^ not supported yet
  1342. 546 VAR StartFrame: ScrnTypes.AFrameName );
  1343. ***** ^ not supported yet
  1344. 547 BEGIN
  1345. 548 ScrnUtl2.PushFrame( TheFrame );
  1346. ***** ^ not supported yet
  1347. ***** ^ not supported yet
  1348. ***** ^ not supported yet
  1349. 549 FrameSeqReturn( TheFrame, StartFrame);
  1350. ***** ^ undeclared identifier
  1351. ***** ^ not supported yet
  1352. ***** ^ not supported yet
  1353. 550 ScrnUtl2.PopFrame( TheFrame );
  1354. ***** ^ not supported yet
  1355. ***** ^ not supported yet
  1356. ***** ^ not supported yet
  1357. 551 InputManager.ReconstructFrame( TheFrame );
  1358. ***** ^ not supported yet
  1359. ***** ^ not supported yet
  1360. ***** ^ not supported yet
  1361. 552 END FrameSequence;
  1362. ***** ^ not supported yet
  1363. 553
  1364. 554
  1365. 555 PROCEDURE FrameSeqReturn( TheFrame : ScrnTypes.DisplayFrame;
  1366. ***** ^ not supported yet
  1367. 556 VAR StartFrame : ScrnTypes.AFrameName );
  1368. ***** ^ not supported yet
  1369. 557 VAR
  1370. 558 CheckFrame: ScrnTypes.AFrameName;
  1371. ***** ^ not supported yet
  1372. 559 SavedHeight: CARDINAL;
  1373. 560 BEGIN
  1374. 561 IF NOT FrameExists( TheFrame^.FromFile, StartFrame ) THEN
  1375. ***** ^ not supported yet
  1376. ***** ^ not supported yet
  1377. ***** ^ not supported yet
  1378. ***** ^ not supported yet
  1379. 562 RETURN;
  1380. 563 END;
  1381. 564 SavedHeight := VWindows.GetCursorHeight( TheFrame^.WindowHandle );
  1382. ***** ^ not supported yet
  1383. ***** ^ not supported yet
  1384. ***** ^ not supported yet
  1385. ***** ^ not supported yet
  1386. 565 VWindows.SetCursorHeight( TheFrame^.WindowHandle, 0 );
  1387. ***** ^ not supported yet
  1388. ***** ^ not supported yet
  1389. ***** ^ not supported yet
  1390. ***** ^ not supported yet
  1391. ***** ^ not supported yet
  1392. 566 CheckFrame := TheFrame^.ThisFrame;
  1393. ***** ^ not supported yet
  1394. ***** ^ not supported yet
  1395. ***** ^ not supported yet
  1396. 567 LOOP
  1397. 568 DspFiles.ReadFrame( TheFrame^.FromFile, TheFrame,
  1398. ***** ^ not supported yet
  1399. ***** ^ not supported yet
  1400. ***** ^ not supported yet
  1401. ***** ^ not supported yet
  1402. ***** ^ not supported yet
  1403. 569 StartFrame );
  1404. ***** ^ not supported yet
  1405. 570 FramePainter.ShowDisplayFrame( TheFrame, 0, 0, 0, 0 );
  1406. ***** ^ not supported yet
  1407. ***** ^ not supported yet
  1408. ***** ^ not supported yet
  1409. ***** ^ not supported yet
  1410. 571 InputManager.ControlFrame( TheFrame, 0, '', FALSE, StartFrame );
  1411. ***** ^ not supported yet
  1412. ***** ^ not supported yet
  1413. ***** ^ not supported yet
  1414. ***** ^ not supported yet
  1415. 572 IF PosUtils.Equal( StartFrame, ScrnTypes.ProgramExit ) THEN
  1416. ***** ^ not supported yet
  1417. ***** ^ not supported yet
  1418. ***** ^ not supported yet
  1419. ***** ^ not supported yet
  1420. ***** ^ not supported yet
  1421. 573 EXIT;
  1422. 574 END;
  1423. 575 IF PosUtils.Equal( StartFrame, CheckFrame ) THEN
  1424. ***** ^ not supported yet
  1425. ***** ^ not supported yet
  1426. ***** ^ not supported yet
  1427. ***** ^ not supported yet
  1428. 576 ErrorNames.WarningName('CircSeq');
  1429. ***** ^ not supported yet
  1430. ***** ^ not supported yet
  1431. ***** ^ not supported yet
  1432. 577 EXIT;
  1433. 578 END;
  1434. 579 IF NOT FrameExists( TheFrame^.FromFile, StartFrame ) THEN
  1435. ***** ^ not supported yet
  1436. ***** ^ not supported yet
  1437. ***** ^ not supported yet
  1438. ***** ^ not supported yet
  1439. 580 EXIT;
  1440. 581 END;
  1441. 582 END;
  1442. 583 VWindows.SetCursorHeight( TheFrame^.WindowHandle, SavedHeight );
  1443. ***** ^ not supported yet
  1444. ***** ^ not supported yet
  1445. ***** ^ not supported yet
  1446. ***** ^ not supported yet
  1447. ***** ^ not supported yet
  1448. 584 END FrameSeqReturn;
  1449. ***** ^ not supported yet
  1450. 585
  1451. 586
  1452. 587 PROCEDURE FrameSeq2( TheFile : ScrnTypes.DisplayFile;
  1453. ***** ^ not supported yet
  1454. 588 CheckFrame: ARRAY OF CHAR; VAR StartFrame : ARRAY OF CHAR );
  1455. ***** ^ not supported yet
  1456. ***** ^ not supported yet
  1457. 589 VAR
  1458. 590 NextFrame, DummyName: ScrnTypes.AFrameName;
  1459. ***** ^ not supported yet
  1460. 591 TmpFrame: ScrnTypes.DisplayFrame;
  1461. ***** ^ not supported yet
  1462. 592 FrameAbove, FrameBelow, FrameRight, FrameLeft: ScrnTypes.AFrameName;
  1463. ***** ^ not supported yet
  1464. 593 FrameList : GenLists.GenList;
  1465. ***** ^ not supported yet
  1466. 594 dumc: CHAR;
  1467. 595 BEGIN
  1468. 596 IF NOT FrameExists( TheFile, StartFrame ) THEN
  1469. ***** ^ not supported yet
  1470. ***** ^ not supported yet
  1471. ***** ^ not supported yet
  1472. 597 RETURN;
  1473. 598 END;
  1474. 599 M2Strings.Assign( StartFrame, NextFrame );
  1475. ***** ^ not supported yet
  1476. ***** ^ not supported yet
  1477. ***** ^ not supported yet
  1478. ***** ^ not supported yet
  1479. 600 ScrnTypes.InitDisplayFrame( TmpFrame, VWindows.CurrentWindow );
  1480. ***** ^ not supported yet
  1481. ***** ^ not supported yet
  1482. ***** ^ not supported yet
  1483. ***** ^ not supported yet
  1484. ***** ^ not supported yet
  1485. 601 LOOP
  1486. 602 DspFiles.ReadFrame( TheFile, TmpFrame, NextFrame );
  1487. ***** ^ not supported yet
  1488. ***** ^ not supported yet
  1489. ***** ^ not supported yet
  1490. ***** ^ not supported yet
  1491. ***** ^ not supported yet
  1492. 603 ScrnUtl1.GetFrameLinks( TmpFrame, FrameAbove, FrameBelow,
  1493. ***** ^ not supported yet
  1494. ***** ^ not supported yet
  1495. ***** ^ not supported yet
  1496. ***** ^ not supported yet
  1497. ***** ^ not supported yet
  1498. 604 FrameLeft, FrameRight );
  1499. ***** ^ not supported yet
  1500. ***** ^ not supported yet
  1501. 605 IF (FrameAbove[0] # 0C) OR (FrameBelow[0] # 0C) OR
  1502. ***** ^ not supported yet
  1503. ***** ^ not supported yet
  1504. ***** ^ not supported yet
  1505. ***** ^ not supported yet
  1506. 606 (FrameLeft[0] # 0C) OR (FrameRight[0] # 0C) THEN
  1507. ***** ^ not supported yet
  1508. ***** ^ not supported yet
  1509. ***** ^ not supported yet
  1510. ***** ^ not supported yet
  1511. 607 GenLists.NewList( FrameList );
  1512. ***** ^ not supported yet
  1513. ***** ^ not supported yet
  1514. ***** ^ not supported yet
  1515. 608 LoadFrameList( TheFile, NextFrame, FrameList );
  1516. ***** ^ not supported yet
  1517. ***** ^ not supported yet
  1518. ***** ^ not supported yet
  1519. ***** ^ not supported yet
  1520. 609 ControlSeparately( FrameList, NextFrame, dumc,
  1521. ***** ^ not supported yet
  1522. ***** ^ not supported yet
  1523. ***** ^ not supported yet
  1524. 610 DummyName );
  1525. ***** ^ not supported yet
  1526. 611 DisposeFrameList( FrameList );
  1527. ***** ^ not supported yet
  1528. ***** ^ not supported yet
  1529. 612 ELSE
  1530. 613 FramePainter.ShowDisplayFrame( TmpFrame, 0, 0, 0, 0 );
  1531. ***** ^ not supported yet
  1532. ***** ^ not supported yet
  1533. ***** ^ not supported yet
  1534. ***** ^ not supported yet
  1535. 614 InputManager.ControlFrame( TmpFrame, 0, '', FALSE, NextFrame );
  1536. ***** ^ not supported yet
  1537. ***** ^ not supported yet
  1538. ***** ^ not supported yet
  1539. ***** ^ not supported yet
  1540. 615 END;
  1541. 616 IF PosUtils.Equal( NextFrame, ScrnTypes.ProgramExit ) THEN
  1542. ***** ^ not supported yet
  1543. ***** ^ not supported yet
  1544. ***** ^ not supported yet
  1545. ***** ^ not supported yet
  1546. ***** ^ not supported yet
  1547. 617 EXIT;
  1548. 618 END;
  1549. 619 IF PosUtils.Equal( NextFrame, CheckFrame ) THEN
  1550. ***** ^ not supported yet
  1551. ***** ^ not supported yet
  1552. ***** ^ not supported yet
  1553. ***** ^ not supported yet
  1554. 620 ErrorNames.WarningName('CircSeq');
  1555. ***** ^ not supported yet
  1556. ***** ^ not supported yet
  1557. ***** ^ not supported yet
  1558. 621 EXIT;
  1559. 622 END;
  1560. 623 IF NOT FrameExists( TheFile, NextFrame ) THEN
  1561. ***** ^ not supported yet
  1562. ***** ^ not supported yet
  1563. ***** ^ not supported yet
  1564. 624 EXIT;
  1565. 625 END;
  1566. 626 END;
  1567. 627 M2Strings.Assign( NextFrame, StartFrame );
  1568. ***** ^ not supported yet
  1569. ***** ^ not supported yet
  1570. ***** ^ not supported yet
  1571. ***** ^ not supported yet
  1572. 628 ScrnUtl2.CloseDisplayFrame( TmpFrame );
  1573. ***** ^ not supported yet
  1574. ***** ^ not supported yet
  1575. ***** ^ not supported yet
  1576. 629 END FrameSeq2;
  1577. ***** ^ not supported yet
  1578. 630
  1579. 631
  1580. 632 PROCEDURE FindNextField( TheFrame: ScrnTypes.DisplayFrame; typ:
  1581. ***** ^ not supported yet
  1582. 633 CHAR; VAR spot: CARDINAL; VAR FieldPtr:
  1583. 634 ScrnTypes.InputFieldPtr ): BOOLEAN;
  1584. ***** ^ not supported yet
  1585. 635 VAR
  1586. 636 found: BOOLEAN;
  1587. 637 ListEnd: CARDINAL;
  1588. 638 BEGIN
  1589. 639 ListEnd := ScrnUtl1.FieldListTotal( TheFrame );
  1590. ***** ^ not supported yet
  1591. ***** ^ not supported yet
  1592. ***** ^ not supported yet
  1593. 640 FieldPtr := NIL;
  1594. ***** ^ not supported yet
  1595. 641 found := FALSE;
  1596. 642 WHILE (spot <= ListEnd) AND (NOT found) DO
  1597. 643 ScrnUtl1.GetFieldPtr( TheFrame, spot, FieldPtr );
  1598. ***** ^ not supported yet
  1599. ***** ^ not supported yet
  1600. ***** ^ not supported yet
  1601. ***** ^ not supported yet
  1602. 644 IF (typ = 0C) OR (FieldPtr^.typ = typ) THEN
  1603. ***** ^ not supported yet
  1604. ***** ^ not supported yet
  1605. 645 found := TRUE;
  1606. 646 ELSE
  1607. 647 INC( spot );
  1608. ***** ^ undeclared identifier
  1609. ***** ^ not supported yet
  1610. 648 END;
  1611. 649 END;
  1612. 650 RETURN found;
  1613. 651 END FindNextField;
  1614. ***** ^ not supported yet
  1615. 652
  1616. 653
  1617. 654 PROCEDURE GetStrResponse( TheFile:
  1618. 655 ScrnTypes.DisplayFile; FrameName, Default: ARRAY
  1619. ***** ^ not supported yet
  1620. 656 OF CHAR; VAR TheStr: ARRAY OF CHAR ): BOOLEAN;
  1621. ***** ^ not supported yet
  1622. ***** ^ not supported yet
  1623. 657 VAR
  1624. 658 MsgFrame: ScrnTypes.DisplayFrame;
  1625. ***** ^ not supported yet
  1626. 659 fnum : CARDINAL;
  1627. 660 FieldPtr: ScrnTypes.InputFieldPtr;
  1628. ***** ^ not supported yet
  1629. 661 result: BOOLEAN;
  1630. 662 NextFrame: ScrnTypes.AFrameName;
  1631. ***** ^ not supported yet
  1632. 663 TmpFrame: ScrnTypes.DisplayFrame;
  1633. ***** ^ not supported yet
  1634. 664 BEGIN
  1635. 665 ScrnTypes.InitDisplayFrame( MsgFrame, VWindows.CurrentWindow );
  1636. ***** ^ not supported yet
  1637. ***** ^ not supported yet
  1638. ***** ^ not supported yet
  1639. ***** ^ not supported yet
  1640. ***** ^ not supported yet
  1641. 666 DspFiles.ReadFrame( TheFile, MsgFrame, FrameName );
  1642. ***** ^ not supported yet
  1643. ***** ^ not supported yet
  1644. ***** ^ not supported yet
  1645. ***** ^ not supported yet
  1646. ***** ^ not supported yet
  1647. 667 fnum := 1;
  1648. 668 IF NOT FindNextField( MsgFrame, ScrnTypes.StringCode, fnum,
  1649. ***** ^ not supported yet
  1650. ***** ^ not supported yet
  1651. ***** ^ not supported yet
  1652. ***** ^ not supported yet
  1653. 669 FieldPtr ) THEN
  1654. ***** ^ not supported yet
  1655. 670 result := FALSE;
  1656. 671 ELSE
  1657. 672 ChangeField( MsgFrame, Default, FieldPtr^.fnam, TRUE );
  1658. ***** ^ not supported yet
  1659. ***** ^ not supported yet
  1660. ***** ^ not supported yet
  1661. ***** ^ not supported yet
  1662. ***** ^ not supported yet
  1663. ***** ^ not supported yet
  1664. 673 FramePainter.ShowDisplayFrame( MsgFrame, 0, 0, 0, 0 );
  1665. ***** ^ not supported yet
  1666. ***** ^ not supported yet
  1667. ***** ^ not supported yet
  1668. ***** ^ not supported yet
  1669. 674 InputManager.ControlFrame( MsgFrame, 1, '', FALSE, NextFrame );
  1670. ***** ^ not supported yet
  1671. ***** ^ not supported yet
  1672. ***** ^ not supported yet
  1673. ***** ^ not supported yet
  1674. 675 IF PosUtils.Equal( MsgFrame^.parent, NextFrame ) THEN
  1675. ***** ^ not supported yet
  1676. ***** ^ not supported yet
  1677. ***** ^ not supported yet
  1678. ***** ^ not supported yet
  1679. ***** ^ not supported yet
  1680. 676 result := FALSE;
  1681. 677 ELSE
  1682. 678 result := TRUE;
  1683. 679 END;
  1684. 680 ReadInput( MsgFrame, TheStr, FieldPtr^.fnam );
  1685. ***** ^ undeclared identifier
  1686. ***** ^ not supported yet
  1687. ***** ^ not supported yet
  1688. ***** ^ not supported yet
  1689. ***** ^ not supported yet
  1690. 681 END;
  1691. 682 StrEdit.CrunchBlanks( TheStr );
  1692. ***** ^ not supported yet
  1693. ***** ^ not supported yet
  1694. ***** ^ not supported yet
  1695. 683 ScrnUtl2.CloseDisplayFrame( MsgFrame );
  1696. ***** ^ not supported yet
  1697. ***** ^ not supported yet
  1698. ***** ^ not supported yet
  1699. 684 RETURN result;
  1700. 685 END GetStrResponse;
  1701. ***** ^ not supported yet
  1702. 686
  1703. 687
  1704. 688 PROCEDURE ReadShowAndCntrl( TheFile: ScrnTypes.DisplayFile;
  1705. ***** ^ not supported yet
  1706. 689 TheFrame: ScrnTypes.DisplayFrame; VAR FrameName :
  1707. ***** ^ not supported yet
  1708. 690 ScrnTypes.AFrameName );
  1709. ***** ^ not supported yet
  1710. 691 BEGIN
  1711. 692 DspFiles.ReadFrame( TheFile, TheFrame, FrameName );
  1712. ***** ^ not supported yet
  1713. ***** ^ not supported yet
  1714. ***** ^ not supported yet
  1715. ***** ^ not supported yet
  1716. ***** ^ not supported yet
  1717. 693 FramePainter.ShowDisplayFrame( TheFrame, 0, 0, 0, 0 );
  1718. ***** ^ not supported yet
  1719. ***** ^ not supported yet
  1720. ***** ^ not supported yet
  1721. ***** ^ not supported yet
  1722. 694 InputManager.ControlFrame( TheFrame, 1, '', FALSE, FrameName );
  1723. ***** ^ not supported yet
  1724. ***** ^ not supported yet
  1725. ***** ^ not supported yet
  1726. ***** ^ not supported yet
  1727. 695 END ReadShowAndCntrl;
  1728. ***** ^ not supported yet
  1729. 696
  1730. 697
  1731. 698 PROCEDURE RdShwAndCntrlConst( TheFile: ScrnTypes.DisplayFile;
  1732. ***** ^ not supported yet
  1733. 699 TheFrame: ScrnTypes.DisplayFrame; FrameName : ARRAY OF CHAR );
  1734. ***** ^ not supported yet
  1735. ***** ^ not supported yet
  1736. 700 VAR
  1737. 701 TmpName: ScrnTypes.AFrameName;
  1738. ***** ^ not supported yet
  1739. 702 BEGIN
  1740. 703 M2Strings.Assign( FrameName, TmpName );
  1741. ***** ^ not supported yet
  1742. ***** ^ not supported yet
  1743. ***** ^ not supported yet
  1744. ***** ^ not supported yet
  1745. 704 ReadShowAndCntrl( TheFile, TheFrame, TmpName );
  1746. ***** ^ not supported yet
  1747. ***** ^ not supported yet
  1748. ***** ^ not supported yet
  1749. ***** ^ not supported yet
  1750. 705 END RdShwAndCntrlConst;
  1751. ***** ^ not supported yet
  1752. 706
  1753. 707
  1754. 708 PROCEDURE Input( TheFrame: ScrnTypes.DisplayFrame; VAR
  1755. ***** ^ not supported yet
  1756. 709 FrameName : ScrnTypes.AFrameName );
  1757. ***** ^ not supported yet
  1758. 710 BEGIN
  1759. 711 DspFiles.ReadFrame( TheFrame^.FromFile, TheFrame,
  1760. ***** ^ not supported yet
  1761. ***** ^ not supported yet
  1762. ***** ^ not supported yet
  1763. ***** ^ not supported yet
  1764. ***** ^ not supported yet
  1765. 712 FrameName );
  1766. ***** ^ not supported yet
  1767. 713 FramePainter.ShowDisplayFrame( TheFrame, 0, 0, 0, 0 );
  1768. ***** ^ not supported yet
  1769. ***** ^ not supported yet
  1770. ***** ^ not supported yet
  1771. ***** ^ not supported yet
  1772. 714 InputManager.ControlFrame( TheFrame, 1, '', FALSE, FrameName );
  1773. ***** ^ not supported yet
  1774. ***** ^ not supported yet
  1775. ***** ^ not supported yet
  1776. ***** ^ not supported yet
  1777. 715 END Input;
  1778. ***** ^ not supported yet
  1779. 716
  1780. 717
  1781. 718 PROCEDURE InputConst( TheFrame: ScrnTypes.DisplayFrame;
  1782. ***** ^ not supported yet
  1783. 719 FrameName : ARRAY OF CHAR );
  1784. ***** ^ not supported yet
  1785. 720 VAR
  1786. 721 TmpName: ScrnTypes.AFrameName;
  1787. ***** ^ not supported yet
  1788. 722 BEGIN
  1789. 723 M2Strings.Assign( FrameName, TmpName );
  1790. ***** ^ not supported yet
  1791. ***** ^ not supported yet
  1792. ***** ^ not supported yet
  1793. ***** ^ not supported yet
  1794. 724 DspFiles.ReadFrame( TheFrame^.FromFile, TheFrame,
  1795. ***** ^ not supported yet
  1796. ***** ^ not supported yet
  1797. ***** ^ not supported yet
  1798. ***** ^ not supported yet
  1799. ***** ^ not supported yet
  1800. 725 TmpName );
  1801. ***** ^ not supported yet
  1802. 726 FramePainter.ShowDisplayFrame( TheFrame, 0, 0, 0, 0 );
  1803. ***** ^ not supported yet
  1804. ***** ^ not supported yet
  1805. ***** ^ not supported yet
  1806. ***** ^ not supported yet
  1807. 727 InputManager.ControlFrame( TheFrame, 0, '', FALSE, TmpName );
  1808. ***** ^ not supported yet
  1809. ***** ^ not supported yet
  1810. ***** ^ not supported yet
  1811. ***** ^ not supported yet
  1812. 728 END InputConst;
  1813. ***** ^ not supported yet
  1814. 729
  1815. 730
  1816. 731 PROCEDURE ReadInput(VAR TheFrame : ScrnTypes.DisplayFrame; VAR TheStr :
  1817. ***** ^ not supported yet
  1818. 732 ARRAY OF CHAR; FieldName : ARRAY OF CHAR);
  1819. ***** ^ not supported yet
  1820. ***** ^ not supported yet
  1821. 733 VAR
  1822. 734 FieldPtr : ScrnTypes.InputFieldPtr;
  1823. ***** ^ not supported yet
  1824. 735 ImageRec: ScrnTypes.ImageElement;
  1825. ***** ^ not supported yet
  1826. 736 BEGIN
  1827. 737 IF NOT ScrnUtl1.FindField( TheFrame, FieldName, FieldPtr, ImageRec ) THEN
  1828. ***** ^ not supported yet
  1829. ***** ^ not supported yet
  1830. ***** ^ not supported yet
  1831. ***** ^ not supported yet
  1832. ***** ^ not supported yet
  1833. ***** ^ not supported yet
  1834. 738 NotFieldWarning( FieldName, TheFrame^.ThisFrame );
  1835. ***** ^ not supported yet
  1836. ***** ^ not supported yet
  1837. ***** ^ not supported yet
  1838. ***** ^ not supported yet
  1839. 739 END;
  1840. 740 M2Strings.Assign(ImageRec.text, TheStr);
  1841. ***** ^ not supported yet
  1842. ***** ^ not supported yet
  1843. ***** ^ not supported yet
  1844. ***** ^ not supported yet
  1845. ***** ^ not supported yet
  1846. 741 END ReadInput;
  1847. ***** ^ not supported yet
  1848. 742
  1849. 743
  1850. 744 PROCEDURE ReadNextField(VAR TheFrame : ScrnTypes.DisplayFrame;
  1851. ***** ^ not supported yet
  1852. 745 VAR TheStr : ARRAY OF CHAR; skip : CARDINAL);
  1853. ***** ^ not supported yet
  1854. 746 (* will skip first field if it is input field *)
  1855. 747 VAR
  1856. 748 i : CARDINAL;
  1857. 749 ImagePtr: ScrnTypes.ImageElmtPtr;
  1858. ***** ^ not supported yet
  1859. 750 BEGIN
  1860. 751 IF (skip + TheFrame^.CurrentField) >
  1861. ***** ^ not supported yet
  1862. ***** ^ not supported yet
  1863. 752 GenLists.ListLength(TheFrame^.FieldList) THEN
  1864. ***** ^ not supported yet
  1865. ***** ^ not supported yet
  1866. ***** ^ not supported yet
  1867. ***** ^ not supported yet
  1868. 753 ErrorNames.WarningName('EndFld');
  1869. ***** ^ not supported yet
  1870. ***** ^ not supported yet
  1871. ***** ^ not supported yet
  1872. 754 END;
  1873. 755 FOR i := 0 TO skip DO
  1874. 756 INC( TheFrame^.CurrentField );
  1875. ***** ^ undeclared identifier
  1876. ***** ^ not supported yet
  1877. ***** ^ not supported yet
  1878. 757 END;
  1879. 758 END ReadNextField;
  1880. ***** ^ not supported yet
  1881. 759
  1882. 760
  1883. 761 PROCEDURE ReadNextInput(VAR TheFrame : ScrnTypes.DisplayFrame;
  1884. ***** ^ not supported yet
  1885. 762 VAR TheStr : ARRAY OF CHAR; skip : CARDINAL);
  1886. ***** ^ not supported yet
  1887. 763 (* will skip first field if it is input field *)
  1888. 764 VAR
  1889. 765 MaxField, i : CARDINAL;
  1890. 766 ImagePtr: ScrnTypes.ImageElmtPtr;
  1891. ***** ^ not supported yet
  1892. 767 BEGIN
  1893. 768 (*
  1894. 769 This version of ReadNextInput added at suggestion of Douglas Wrege
  1895. 770 on 27 Dec 89 to make ReadNextInput skip Display fields, as it did
  1896. 771 in release 1.4. ReadNextField, above, reads every field, display
  1897. 772 or not.
  1898. 773 *)
  1899. 774 MaxField := GenLists.ListLength( TheFrame^.FieldList );
  1900. ***** ^ not supported yet
  1901. ***** ^ not supported yet
  1902. ***** ^ not supported yet
  1903. ***** ^ not supported yet
  1904. 775 FOR i := 0 TO skip DO
  1905. 776 IF TheFrame^.CurrentField < MaxField THEN
  1906. ***** ^ not supported yet
  1907. ***** ^ not supported yet
  1908. 777 INC( TheFrame^.CurrentField );
  1909. ***** ^ undeclared identifier
  1910. ***** ^ not supported yet
  1911. ***** ^ not supported yet
  1912. 778 ELSE
  1913. 779 ErrorNames.WarningName( 'EndFld' );
  1914. ***** ^ not supported yet
  1915. ***** ^ not supported yet
  1916. ***** ^ not supported yet
  1917. 780 END;
  1918. 781 WHILE (TheFrame^.CurrentField < MaxField) AND
  1919. ***** ^ not supported yet
  1920. ***** ^ not supported yet
  1921. 782 (ScrnUtl1.FieldType(TheFrame,TheFrame^.CurrentField)
  1922. ***** ^ not supported yet
  1923. ***** ^ not supported yet
  1924. ***** ^ not supported yet
  1925. ***** ^ not supported yet
  1926. ***** ^ not supported yet
  1927. 783 = ScrnTypes.DispCode) DO
  1928. ***** ^ not supported yet
  1929. ***** ^ not supported yet
  1930. 784 INC( TheFrame^.CurrentField );
  1931. ***** ^ undeclared identifier
  1932. ***** ^ not supported yet
  1933. ***** ^ not supported yet
  1934. 785 END;
  1935. 786 END;
  1936. 787
  1937. 788 ScrnUtl1.GetFieldImagePtr( TheFrame, TheFrame^.CurrentField, ImagePtr );
  1938. ***** ^ not supported yet
  1939. ***** ^ not supported yet
  1940. ***** ^ not supported yet
  1941. ***** ^ not supported yet
  1942. ***** ^ not supported yet
  1943. ***** ^ not supported yet
  1944. 789 M2Strings.Assign( ImagePtr^.text, TheStr );
  1945. ***** ^ not supported yet
  1946. ***** ^ not supported yet
  1947. ***** ^ not supported yet
  1948. ***** ^ not supported yet
  1949. ***** ^ not supported yet
  1950. 790 END ReadNextInput;
  1951. ***** ^ not supported yet
  1952. 791
  1953. 792 BEGIN
  1954. 793 Initialized := FALSE;
  1955. 794 Init();
  1956. ***** ^ not supported yet
  1957. ***** ^ not supported yet
  1958. 795 END ControlUtils.
  1959. ***** ^ not supported yet
  1960. 1163 errors