| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964 |
- Listing:
- 1 IMPLEMENTATION MODULE ControlUtils;
- 2 (*
- 3 * REPERTOIRE
- 4 * Release 1.6
- 5 * By Charles Bradford and Cole Brecheen
- 6 * (c) Copyright 1985-1992 PMI
- 7 * Green Bay, Wisconsin
- 8 * All rights reserved
- 9 * (414) 468-6040
- 10 *
- 11 * $Header: D:/logfiles/mods/controlu.mov 1.5 10 Mar 1991 15:25:34 coleb $
- 12 *
- 13 *)
- 14
- 15
- 16 IMPORT DspFiles;
- 17 IMPORT ErrorManager;
- 18 IMPORT ErrorNames;
- 19 IMPORT FrameManager;
- 20 IMPORT FramePainter;
- 21 IMPORT GenLists;
- 22 IMPORT InputManager;
- 23 IMPORT LowLevel;
- 24 IMPORT M2Strings;
- 25 IMPORT MsColors;
- 26 IMPORT NdxBones;
- 27 IMPORT Numbers;
- 28 IMPORT PosUtils;
- 29 IMPORT Rectangles;
- 30 IMPORT ScrnTypes;
- 31 IMPORT ScrnUtl1;
- 32 IMPORT ScrnUtl2;
- 33 IMPORT StrConv;
- 34 IMPORT StrEdit;
- 35 IMPORT SYSTEM;
- 36 IMPORT VEditor;
- 37 IMPORT VWindows;
- 38
- 39
- 40 VAR
- 41 Initialized : BOOLEAN;
- 42
- 43 PROCEDURE Init();
- 44 BEGIN
- 45 IF Initialized THEN
- 46 RETURN;
- 47 ELSE
- 48 Initialized := TRUE;
- 49 END;
- 50 DspFiles.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 51 ErrorManager.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 52 ErrorNames.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 53 FrameManager.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 54 FramePainter.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 55 GenLists.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 56 InputManager.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 57 LowLevel.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 58 M2Strings.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 59 MsColors.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 60 NdxBones.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 61 Numbers.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 62 PosUtils.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 63 Rectangles.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 64 ScrnTypes.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 65 ScrnUtl1.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 66 ScrnUtl2.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 67 StrConv.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 68 StrEdit.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 69 VEditor.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 70 VWindows.Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 71 END Init;
- ***** ^ not supported yet
- 72
- 73
- 74 CONST
- 75 AfterLastElmt = 65535;
- 76
- 77 PROCEDURE NotFieldWarning( FieldName, FrameName: ARRAY OF CHAR );
- ***** ^ not supported yet
- 78 VAR
- 79 dumstr1: ARRAY [0..79] OF CHAR;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 80 BEGIN
- 81 StrEdit.AssignStr( ' is not a field in frame ', dumstr1 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 82 M2Strings.Insert( FieldName, dumstr1, 0 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 83 StrEdit.Append( dumstr1, FrameName );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 84 ErrorManager.WARN( dumstr1 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 85 END NotFieldWarning;
- ***** ^ not supported yet
- 86
- 87
- 88
- 89 PROCEDURE AddEditorField(VAR TheFrame : ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 90 VAR TheList: GenLists.GenList; VAR ControlRec:
- ***** ^ not supported yet
- 91 VEditor.AnEdControlRec );
- ***** ^ not supported yet
- 92 VAR
- 93 ImageNum: CARDINAL;
- 94 TmpRec: ScrnTypes.ImageElement;
- ***** ^ not supported yet
- 95 FieldRec: ScrnTypes.InputFieldRecord;
- ***** ^ not supported yet
- 96 dumstr : ARRAY [0..1] OF CHAR;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 97 AreaInBox : Rectangles.ARectangle;
- ***** ^ not supported yet
- 98 BEGIN
- 99 ControlRec.FrameRec := TheFrame;
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 100 IF NOT GenLists.Initialized( TheFrame^.FieldList ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 101 GenLists.NewList( TheFrame^.FieldList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 102 ScrnUtl1.PutFrameLists( TheFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 103 (*Make sure the new FieldList gets inserted into
- 104 TheFrame's .self list. *)
- 105 END;
- 106 IF NOT GenLists.Initialized( TheFrame^.EdFieldList ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 107 GenLists.NewList( TheFrame^.EdFieldList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 108 ScrnUtl1.PutFrameLists( TheFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 109 (*Make sure the new EdFieldList gets inserted into
- 110 TheFrame's .self list. *)
- 111 END;
- 112 dumstr[0] := 0C;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 113 dumstr[1] := 0C;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 114 Rectangles.DefineRectangle( AreaInBox, ControlRec.Col1,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 115 ControlRec.Row1, ControlRec.Col2, ControlRec.Row2 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 116 IF ControlRec.EntryBox > 0 THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- 117 Rectangles.ShrinkRect( AreaInBox );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 118 END;
- 119 ScrnUtl2.CreateImageElement( TmpRec, AreaInBox.col1,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 120 AreaInBox.row1, TheFrame^.normfor, TheFrame^.normbak,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 121 TheFrame^.normatrb, GenLists.ListLength(
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 122 TheFrame^.FieldList ) + 1, dumstr );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 123 ScrnUtl2.AddImageElement( TheFrame, TmpRec, ImageNum );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 124 ScrnTypes.InitField( FieldRec );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 125 FieldRec.ImageNum := ImageNum;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 126 FieldRec.typ := ScrnTypes.EditorCode;
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 127 FieldRec.req := FALSE;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 128 FieldRec.EdFieldNum := GenLists.ListLength( TheFrame^.EdFieldList ) + 1;
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 129 GenLists.ListInsert( TheList, GenLists.ListCode, TheFrame^.EdFieldList,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 130 FieldRec.EdFieldNum );
- ***** ^ not supported yet
- ***** ^ not supported yet
- 131 FieldRec.Col2 := AreaInBox.col2;
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 132 FieldRec.Row2 := AreaInBox.row2;
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 133 FieldRec.TextRow1 := ControlRec.TextRow1;
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 134 FieldRec.CursorCol := ControlRec.CursorCol;
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 135 FieldRec.CursorRow := ControlRec.CursorRow;
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 136 FieldRec.MaxLines := ControlRec.MaxLines;
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 137 FieldRec.ReadOnly := ControlRec.ReadOnly;
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 138 ScrnUtl1.PutFieldRec( FieldRec, TheFrame, AfterLastElmt );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 139 IF TheFrame^.action = 'W' THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- 140 TheFrame^.action := 'I';
- ***** ^ not supported yet
- ***** ^ not supported yet
- 141 END;
- 142 (* The action char is lower case while the frame is
- 143 active. *)
- 144 IF TheFrame^.action = 'w' THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- 145 TheFrame^.action := 'i';
- ***** ^ not supported yet
- ***** ^ not supported yet
- 146 END;
- 147 END AddEditorField;
- ***** ^ not supported yet
- 148
- 149
- 150 PROCEDURE AddStrField(VAR TheFrame : ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 151 Col, Row : CARDINAL; text : ARRAY OF CHAR; width: CARDINAL );
- ***** ^ not supported yet
- 152 VAR
- 153 ImageNum: CARDINAL;
- 154 TmpRec: ScrnTypes.ImageElement;
- ***** ^ not supported yet
- 155 FieldRec: ScrnTypes.InputFieldRecord;
- ***** ^ not supported yet
- 156 BEGIN
- 157 IF M2Strings.Length(text) # width THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 158 StrEdit.LeftJustify( text, width );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 159 END;
- 160 IF NOT GenLists.Initialized( TheFrame^.FieldList ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 161 GenLists.NewList( TheFrame^.FieldList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 162 ScrnUtl1.PutFrameLists( TheFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 163 (*Make sure the new FieldList gets inserted into
- 164 TheFrame's .self list. *)
- 165 END;
- 166 ScrnUtl2.CreateImageElement( TmpRec, Col, Row, TheFrame^.normfor,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 167 TheFrame^.normbak, TheFrame^.normatrb, GenLists.ListLength(
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 168 TheFrame^.FieldList ) + 1, text );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 169 ScrnUtl2.AddImageElement( TheFrame, TmpRec, ImageNum );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 170 ScrnTypes.InitField( FieldRec );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 171 FieldRec.ImageNum := ImageNum;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 172 FieldRec.typ := ScrnTypes.StringCode;
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 173 FieldRec.req := FALSE;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 174 ScrnUtl1.PutFieldRec( FieldRec, TheFrame, AfterLastElmt );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 175 IF TheFrame^.action = 'W' THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- 176 TheFrame^.action := 'I';
- ***** ^ not supported yet
- ***** ^ not supported yet
- 177 END;
- 178 (* The action char is lower case while the frame is
- 179 active. *)
- 180 IF TheFrame^.action = 'w' THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- 181 TheFrame^.action := 'i';
- ***** ^ not supported yet
- ***** ^ not supported yet
- 182 END;
- 183 END AddStrField;
- ***** ^ not supported yet
- 184
- 185
- 186 PROCEDURE AddMenuItem( VAR TheFrame : ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 187 Col, Row : CARDINAL; text : ARRAY OF CHAR; width, MenuKey: CARDINAL;
- ***** ^ not supported yet
- 188 ReturnVal : ARRAY OF CHAR );
- ***** ^ not supported yet
- 189 VAR
- 190 FieldRec: ScrnTypes.InputFieldRecord;
- ***** ^ not supported yet
- 191 BEGIN
- 192 AddStrField( TheFrame, Col, Row, text, width );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 193 ScrnUtl1.GetFieldRec( TheFrame, ScrnUtl1.FieldListTotal(TheFrame),
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 194 FieldRec );
- ***** ^ not supported yet
- 195 FieldRec.typ := ScrnTypes.GotoCode;
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 196 FieldRec.MenuKey := MenuKey;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 197 M2Strings.Assign( ReturnVal, FieldRec.ReturnVal );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 198 ScrnUtl1.PutFieldRec( FieldRec, TheFrame,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 199 ScrnUtl1.FieldListTotal(TheFrame) );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 200 IF TheFrame^.action = 'W' THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- 201 TheFrame^.action := 'I';
- ***** ^ not supported yet
- ***** ^ not supported yet
- 202 END;
- 203 (* The action char is lower case while the frame is
- 204 active. *)
- 205 IF TheFrame^.action = 'w' THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- 206 TheFrame^.action := 'i';
- ***** ^ not supported yet
- ***** ^ not supported yet
- 207 END;
- 208 END AddMenuItem;
- ***** ^ not supported yet
- 209
- 210
- 211 PROCEDURE ListBox( TheDspFile: ScrnTypes.DisplayFile;
- ***** ^ not supported yet
- 212 FormFrameName: ARRAY OF CHAR; TheList: GenLists.GenList;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 213 VAR ItemChosen: ARRAY OF CHAR; VAR NextFrame:
- ***** ^ not supported yet
- 214 ScrnTypes.AFrameName ): BOOLEAN;
- ***** ^ not supported yet
- 215 VAR
- 216 TmpFrame: ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 217 AnItemWasChosen: BOOLEAN;
- 218 BEGIN
- 219 ScrnTypes.InitDisplayFrame( TmpFrame, VWindows.CurrentWindow );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 220 DspFiles.ReadFrame( TheDspFile, TmpFrame, FormFrameName );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 221 ScrnUtl2.ChoiceListToFrame( TheList, TmpFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 222 FramePainter.ShowDisplayFrame( TmpFrame, 0, 0, 0, 0 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 223 InputManager.ControlFrame( TmpFrame, 0, '', FALSE, NextFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 224 AnItemWasChosen := (NextFrame[0] = 0C);
- ***** ^ not supported yet
- ***** ^ not supported yet
- 225 (* Dangerous. We are relying here on knowlegde that
- 226 ChoiceListToFrame makes '' the return value for each
- 227 choice. *)
- 228 ScrnUtl1.GetFieldText( TmpFrame,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 229 TmpFrame^.CurrentField, ItemChosen );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 230 ScrnUtl2.CloseDisplayFrame( TmpFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 231 RETURN AnItemWasChosen;
- 232 END ListBox;
- ***** ^ not supported yet
- 233
- 234
- 235 PROCEDURE ChangeField(VAR TheFrame : ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 236 TheStr : ARRAY OF CHAR; FieldName : ARRAY OF
- ***** ^ not supported yet
- 237 CHAR; PreserveLength: BOOLEAN);
- ***** ^ not supported yet
- 238 VAR
- 239 padding: ARRAY [0..79] OF CHAR;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 240 OldLngth, NewLngth: CARDINAL;
- 241 FieldPtr : ScrnTypes.InputFieldPtr;
- ***** ^ not supported yet
- 242 ImageRec: ScrnTypes.ImageElement;
- ***** ^ not supported yet
- 243 BEGIN
- 244 IF NOT ScrnUtl1.FindField( TheFrame, FieldName,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 245 FieldPtr, ImageRec ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- 246 NotFieldWarning( FieldName, TheFrame^.ThisFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 247 END;
- 248 FieldPtr^.ChangeMade := TRUE;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 249 IF PreserveLength THEN
- 250 LowLevel.Fill( SYSTEM.ADR(padding), HIGH(padding) + 1, ' ' );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ undeclared identifier
- ***** ^ not supported yet
- ***** ^ not supported yet
- 251 OldLngth := M2Strings.Length( ImageRec.text );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 252 NewLngth := M2Strings.Length( TheStr );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 253 M2Strings.Assign(TheStr, ImageRec.text );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 254 IF OldLngth > NewLngth THEN
- 255 StrEdit.SetLength( padding, OldLngth - NewLngth );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 256 StrEdit.Append( ImageRec.text, padding );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 257 ELSE
- 258 StrEdit.SetLength( ImageRec.text, OldLngth );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 259 END;
- 260 ELSE
- 261 M2Strings.Assign(TheStr, ImageRec.text);
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 262 END;
- 263 ScrnUtl1.PutFieldImageRec( ImageRec, TheFrame, ImageRec.field );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 264 END ChangeField;
- ***** ^ not supported yet
- 265
- 266
- 267 PROCEDURE CheckFieldName( TheFrame: ScrnTypes.DisplayFrame; FieldName:
- ***** ^ not supported yet
- 268 ARRAY OF CHAR );
- ***** ^ not supported yet
- 269 (*Displays a warning message if it can't find FieldName in TheFrame.*)
- 270 VAR
- 271 FieldPtr: ScrnTypes.InputFieldPtr;
- ***** ^ not supported yet
- 272 ImageRec: ScrnTypes.ImageElement;
- ***** ^ not supported yet
- 273 BEGIN
- 274 IF NOT ScrnUtl1.FindField( TheFrame, FieldName, FieldPtr, ImageRec ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 275 NotFieldWarning( FieldName, TheFrame^.ThisFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 276 END;
- 277 END CheckFieldName;
- ***** ^ not supported yet
- 278
- 279
- 280 PROCEDURE Control( TheFrame: ScrnTypes.DisplayFrame );
- ***** ^ not supported yet
- 281 VAR
- 282 FrameName : ScrnTypes.AFrameName;
- ***** ^ not supported yet
- 283 (*This gets thrown away.*)
- 284 BEGIN
- 285 InputManager.ControlFrame( TheFrame, 0, '', FALSE, FrameName );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 286 END Control;
- ***** ^ not supported yet
- 287
- 288
- 289 PROCEDURE FrameListSpot( FrameName: ARRAY OF CHAR;
- ***** ^ not supported yet
- 290 FrameList: GenLists.GenList ): CARDINAL;
- ***** ^ not supported yet
- 291 VAR
- 292 TypeCode, cnt, ListEnd: CARDINAL;
- 293 TmpFrame: ScrnTypes.DisplayFrameRec;
- ***** ^ not supported yet
- 294 BEGIN
- 295 cnt := 1;
- 296 ListEnd := GenLists.ListLength( FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 297 WHILE cnt < ListEnd DO
- 298 GenLists.GetElmt( FrameList, cnt, TmpFrame, TypeCode );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 299 IF PosUtils.Equal( TmpFrame.ThisFrame, FrameName ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 300 RETURN cnt;
- 301 END;
- 302 cnt := cnt + 2;
- 303 END;
- 304 RETURN 0;
- 305 END FrameListSpot;
- ***** ^ not supported yet
- 306
- 307
- 308 PROCEDURE AddToFrameList( TheFrame: ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 309 VAR FrameList: GenLists.GenList );
- ***** ^ not supported yet
- 310 VAR
- 311 TmpList: GenLists.GenList;
- ***** ^ not supported yet
- 312 spot: CARDINAL;
- 313 SavedFlag : BOOLEAN;
- 314 BEGIN
- 315 spot := FrameListSpot( TheFrame^.ThisFrame, FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 316 IF spot > 0 THEN
- 317 (*A frame of this name is already in the FrameList. We can't just
- 318 delete it and add the new copy because they probably share lists;
- 319 look at how GetFrameFromList gives the gotten frame pointers
- 320 directly into its own sublists.*)
- 321 RETURN;
- 322 END;
- 323 TheFrame^.CurrentField := 1;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 324 SavedFlag := TheFrame^.SelfSharedWithFile;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 325 (* Added this SavedFlag thing on 2 Nov 88 at suggestion
- 326 of John McMonagle to prevent memory loss problems. *)
- 327 TheFrame^.SelfSharedWithFile := TRUE;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 328 (* We're using this to prevent ReadFrame from
- 329 disposing of the .self list next time. *)
- 330 GenLists.ListInsert( TheFrame^, 0, FrameList, AfterLastElmt );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 331 TheFrame^.SelfSharedWithFile := SavedFlag;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 332 GenLists.CopyList( TheFrame^.self, TmpList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 333 (*We copy the self list so it won't go away when the
- 334 ListBuf changes.*)
- 335 GenLists.ListInsert( TmpList, GenLists.ListCode,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 336 FrameList, AfterLastElmt );
- ***** ^ not supported yet
- ***** ^ not supported yet
- 337 END AddToFrameList;
- ***** ^ not supported yet
- 338
- 339
- 340 PROCEDURE DisposeFrameList( VAR FrameList: GenLists.GenList );
- ***** ^ not supported yet
- 341 VAR
- 342 ListEnd, cnt, dumc, TypeCode: CARDINAL;
- 343 TmpFrame: ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 344 BEGIN
- 345 ListEnd := GenLists.ListLength( FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 346 cnt := 1;
- 347 WHILE cnt < ListEnd DO
- 348 GenLists.GetElmtAdr( FrameList, cnt, TmpFrame, dumc, TypeCode );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 349 FrameManager.FrameDeactivated( TmpFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 350 cnt := cnt + 2;
- 351 END;
- 352 GenLists.DisposeList( FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 353 END DisposeFrameList;
- ***** ^ not supported yet
- 354
- 355
- 356 PROCEDURE DeleteFrom( VAR TheFrame: ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 357 VAR FrameList: GenLists.GenList );
- ***** ^ not supported yet
- 358 VAR
- 359 TmpList: GenLists.GenList;
- ***** ^ not supported yet
- 360 spot: CARDINAL;
- 361 BEGIN
- 362 spot := FrameListSpot( TheFrame^.ThisFrame, FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 363 IF spot > 0 THEN
- 364 GenLists.GetChildList( FrameList, spot + 1, TmpList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 365 IF GenLists.SameList( TmpList, TheFrame^.self ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 366 (*We're going to confuse the hell out of the programmer
- 367 who deletes a frame from a FrameList after retrieving it
- 368 but before using it. We leave some tracks to make it
- 369 easier to find the problem.*)
- 370 StrEdit.AssignStr( 'DeleteFrom', TheFrame^.ThisFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 371 GenLists.NilList( TheFrame^.self );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 372 GenLists.NilList( TheFrame^.ImageList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 373 GenLists.NilList( TheFrame^.FieldList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 374 END;
- 375 GenLists.ListDelete( FrameList, spot, 2 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 376 END;
- 377 END DeleteFrom;
- ***** ^ not supported yet
- 378
- 379
- 380 PROCEDURE PointFrameAtList( FrameList: GenLists.GenList;
- ***** ^ not supported yet
- 381 FrameName: ARRAY OF CHAR; VAR TheFrame:
- ***** ^ not supported yet
- 382 ScrnTypes.DisplayFrame ): BOOLEAN;
- ***** ^ not supported yet
- 383 (* The difference between this and GetFrameFromList is that
- 384 PointFrameAtList forces TheFrame to point at the DisplayFrameRec
- 385 which is stored in the list; GetFrameFromList copies the
- 386 DisplayFrameRec out into whatever TheFrame happens to be
- 387 pointing at. *)
- 388 VAR
- 389 dumc, spot, TypeCode: CARDINAL;
- 390 BEGIN
- 391 spot := FrameListSpot( FrameName, FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 392 IF spot = 0 THEN
- 393 RETURN FALSE;
- 394 END;
- 395 GenLists.GetElmtAdr( FrameList, spot, TheFrame, dumc, TypeCode );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 396 GenLists.GetChildList( FrameList, spot + 1, TheFrame^.self );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 397 ScrnUtl1.GetFrameLists( TheFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 398 TheFrame^.CurrentField := GenLists.ElmtNow(TheFrame^.FieldList);
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 399 (*ElmtNow returns 0 if the list is NIL.*)
- 400 RETURN TRUE;
- 401 END PointFrameAtList;
- ***** ^ not supported yet
- 402
- 403
- 404 PROCEDURE GetFrameFromList( FrameList: GenLists.GenList;
- ***** ^ not supported yet
- 405 FrameName: ARRAY OF CHAR; VAR TheFrame:
- ***** ^ not supported yet
- 406 ScrnTypes.DisplayFrame ): BOOLEAN;
- ***** ^ not supported yet
- 407 VAR
- 408 spot, TypeCode: CARDINAL;
- 409 BEGIN
- 410 spot := FrameListSpot( FrameName, FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 411 IF spot = 0 THEN
- 412 RETURN FALSE;
- 413 END;
- 414 IF GenLists.SameList( TheFrame^.self,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 415 TheFrame^.FromFile^.ListBuf ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 416 (*Make sure the NdxFile system doesn't think it is still
- 417 managing this frame.*)
- 418 GenLists.DisposeList( TheFrame^.FromFile^.ListBuf );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 419 TheFrame^.FromFile^.BufRecName[0] := 0C;
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 420 END;
- 421 (*Note that we don't dispose of TheFrame's self list if
- 422 it's not part of the list buffer because it may be part
- 423 of the FrameList. Means someone else has to be in charge
- 424 of disposing of the self list if it was created by CopyList.*)
- 425 GenLists.GetElmt( FrameList, spot, TheFrame^, TypeCode );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 426 GenLists.GetChildList( FrameList, spot + 1, TheFrame^.self );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 427 ScrnUtl1.GetFrameLists( TheFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 428 TheFrame^.CurrentField := GenLists.ElmtNow(TheFrame^.FieldList);
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 429 (*ElmtNow returns 0 if the list is NIL.*)
- 430 RETURN TRUE;
- 431 END GetFrameFromList;
- ***** ^ not supported yet
- 432
- 433
- 434 PROCEDURE LoadFrameList( dfile: ScrnTypes.DisplayFile;
- ***** ^ not supported yet
- 435 StartFrame: ARRAY OF CHAR; VAR FrameList: GenLists.GenList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- 436 VAR
- 437 TmpFrame: ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 438 FrameAbove, FrameBelow, FrameRight, FrameLeft: ScrnTypes.AFrameName;
- ***** ^ not supported yet
- 439 BEGIN
- 440 IF NOT FrameExists( dfile, StartFrame ) THEN
- ***** ^ undeclared identifier
- ***** ^ not supported yet
- ***** ^ not supported yet
- 441 RETURN;
- 442 END;
- 443 IF FrameListSpot( StartFrame, FrameList ) > 0 THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 444 (*StartFrame is already in FrameList *)
- 445 RETURN;
- 446 END;
- 447 ScrnTypes.InitDisplayFrame( TmpFrame, VWindows.CurrentWindow );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 448 DspFiles.ReadFrameFast( dfile, TmpFrame, StartFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 449 (* It's okay here to use ReadFrameFast, which does not
- 450 copy the file's listbuf, because AddToFrameList is
- 451 about to make a copy anyway. *)
- 452 AddToFrameList( TmpFrame, FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 453 ScrnUtl1.GetFrameLinks( TmpFrame, FrameAbove, FrameBelow,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 454 FrameLeft, FrameRight );
- ***** ^ not supported yet
- ***** ^ not supported yet
- 455 ScrnUtl2.CloseDisplayFrame( TmpFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 456 IF FrameAbove[0] # 0C THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- 457 LoadFrameList( dfile, FrameAbove, FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 458 END;
- 459 IF FrameBelow[0] # 0C THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- 460 LoadFrameList( dfile, FrameBelow, FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 461 END;
- 462 IF FrameLeft[0] # 0C THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- 463 LoadFrameList( dfile, FrameLeft, FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 464 END;
- 465 IF FrameRight[0] # 0C THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- 466 LoadFrameList( dfile, FrameRight, FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 467 END;
- 468 END LoadFrameList;
- ***** ^ not supported yet
- 469
- 470
- 471 PROCEDURE ControlSeparately( FrameList: GenLists.GenList;
- ***** ^ not supported yet
- 472 VAR NextFrame: ScrnTypes.AFrameName; VAR SelectedChar:
- ***** ^ not supported yet
- 473 CHAR; VAR EndingFrame: ScrnTypes.AFrameName );
- ***** ^ not supported yet
- 474 VAR
- 475 FrameAbove, FrameBelow, FrameRight, FrameLeft: ScrnTypes.AFrameName;
- ***** ^ not supported yet
- 476 TmpFrame: ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 477 BEGIN
- 478 (* Notice that we don't initialize TmpFrame because we are
- 479 forcing it to point into the FrameList. *)
- 480 LOOP
- 481 IF NOT PointFrameAtList( FrameList, NextFrame, TmpFrame ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 482 EXIT;
- 483 END;
- 484 M2Strings.Assign( NextFrame, EndingFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 485 ScrnUtl1.GetFrameLinks( TmpFrame, FrameAbove, FrameBelow,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 486 FrameLeft, FrameRight );
- ***** ^ not supported yet
- ***** ^ not supported yet
- 487 FramePainter.ShowDisplayFrame( TmpFrame, 0, 0, 0, 0 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 488 InputManager.ControlFrame( TmpFrame, TmpFrame^.CurrentField, '',
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 489 FALSE, NextFrame );
- ***** ^ not supported yet
- 490 SelectedChar := ScrnUtl1.SelectedChar( TmpFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 491 END;
- 492 END ControlSeparately;
- ***** ^ not supported yet
- 493
- 494
- 495 PROCEDURE ControlFrameList( FrameList: GenLists.GenList;
- ***** ^ not supported yet
- 496 TheFrame: ScrnTypes.DisplayFrame; VAR NextFrame:
- ***** ^ not supported yet
- 497 ScrnTypes.AFrameName; VAR SelectedChar: CHAR; VAR
- ***** ^ not supported yet
- 498 EndingFrame: ScrnTypes.AFrameName );
- ***** ^ not supported yet
- 499 VAR
- 500 FrameAbove, FrameBelow, FrameRight, FrameLeft: ScrnTypes.AFrameName;
- ***** ^ not supported yet
- 501 BEGIN
- 502 LOOP
- 503 IF NOT GetFrameFromList( FrameList, NextFrame, TheFrame ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 504 EXIT;
- 505 END;
- 506 M2Strings.Assign( NextFrame, EndingFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 507 ScrnUtl1.GetFrameLinks( TheFrame, FrameAbove, FrameBelow,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 508 FrameLeft, FrameRight );
- ***** ^ not supported yet
- ***** ^ not supported yet
- 509 FramePainter.ShowDisplayFrame( TheFrame, 0, 0, 0, 0 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 510 InputManager.ControlFrame( TheFrame, TheFrame^.CurrentField, '',
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 511 FALSE, NextFrame );
- ***** ^ not supported yet
- 512 SelectedChar := ScrnUtl1.SelectedChar( TheFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 513 END;
- 514 END ControlFrameList;
- ***** ^ not supported yet
- 515
- 516
- 517 PROCEDURE ControlFrameGroup( TheFrame: ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 518 VAR NextFrame: ScrnTypes.AFrameName; VAR SelectedChar: CHAR;
- ***** ^ not supported yet
- 519 VAR EndingFrame: ScrnTypes.AFrameName );
- ***** ^ not supported yet
- 520
- 521 VAR
- 522 FrameList : GenLists.GenList;
- ***** ^ not supported yet
- 523
- 524 BEGIN
- 525 GenLists.NewList( FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 526 LoadFrameList( TheFrame^.FromFile, NextFrame, FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 527 ControlFrameList( FrameList, TheFrame, NextFrame, SelectedChar,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 528 EndingFrame );
- ***** ^ not supported yet
- 529 DisposeFrameList( FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- 530 END ControlFrameGroup;
- ***** ^ not supported yet
- 531
- 532
- 533 PROCEDURE FrameExists( TheScreenFile: ScrnTypes.DisplayFile;
- ***** ^ not supported yet
- 534 FrameName: ARRAY OF CHAR ): BOOLEAN;
- ***** ^ not supported yet
- 535 VAR
- 536 duml: LONGINT;
- 537 dumc: CARDINAL;
- 538 BEGIN
- 539 StrEdit.CrunchBlanks( FrameName );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 540 RETURN NdxBones.FindRecord( TheScreenFile, FrameName, duml,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 541 dumc, dumc );
- ***** ^ not supported yet
- 542 END FrameExists;
- ***** ^ not supported yet
- 543
- 544
- 545 PROCEDURE FrameSequence( TheFrame: ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 546 VAR StartFrame: ScrnTypes.AFrameName );
- ***** ^ not supported yet
- 547 BEGIN
- 548 ScrnUtl2.PushFrame( TheFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 549 FrameSeqReturn( TheFrame, StartFrame);
- ***** ^ undeclared identifier
- ***** ^ not supported yet
- ***** ^ not supported yet
- 550 ScrnUtl2.PopFrame( TheFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 551 InputManager.ReconstructFrame( TheFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 552 END FrameSequence;
- ***** ^ not supported yet
- 553
- 554
- 555 PROCEDURE FrameSeqReturn( TheFrame : ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 556 VAR StartFrame : ScrnTypes.AFrameName );
- ***** ^ not supported yet
- 557 VAR
- 558 CheckFrame: ScrnTypes.AFrameName;
- ***** ^ not supported yet
- 559 SavedHeight: CARDINAL;
- 560 BEGIN
- 561 IF NOT FrameExists( TheFrame^.FromFile, StartFrame ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 562 RETURN;
- 563 END;
- 564 SavedHeight := VWindows.GetCursorHeight( TheFrame^.WindowHandle );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 565 VWindows.SetCursorHeight( TheFrame^.WindowHandle, 0 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 566 CheckFrame := TheFrame^.ThisFrame;
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 567 LOOP
- 568 DspFiles.ReadFrame( TheFrame^.FromFile, TheFrame,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 569 StartFrame );
- ***** ^ not supported yet
- 570 FramePainter.ShowDisplayFrame( TheFrame, 0, 0, 0, 0 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 571 InputManager.ControlFrame( TheFrame, 0, '', FALSE, StartFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 572 IF PosUtils.Equal( StartFrame, ScrnTypes.ProgramExit ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 573 EXIT;
- 574 END;
- 575 IF PosUtils.Equal( StartFrame, CheckFrame ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 576 ErrorNames.WarningName('CircSeq');
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 577 EXIT;
- 578 END;
- 579 IF NOT FrameExists( TheFrame^.FromFile, StartFrame ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 580 EXIT;
- 581 END;
- 582 END;
- 583 VWindows.SetCursorHeight( TheFrame^.WindowHandle, SavedHeight );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 584 END FrameSeqReturn;
- ***** ^ not supported yet
- 585
- 586
- 587 PROCEDURE FrameSeq2( TheFile : ScrnTypes.DisplayFile;
- ***** ^ not supported yet
- 588 CheckFrame: ARRAY OF CHAR; VAR StartFrame : ARRAY OF CHAR );
- ***** ^ not supported yet
- ***** ^ not supported yet
- 589 VAR
- 590 NextFrame, DummyName: ScrnTypes.AFrameName;
- ***** ^ not supported yet
- 591 TmpFrame: ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 592 FrameAbove, FrameBelow, FrameRight, FrameLeft: ScrnTypes.AFrameName;
- ***** ^ not supported yet
- 593 FrameList : GenLists.GenList;
- ***** ^ not supported yet
- 594 dumc: CHAR;
- 595 BEGIN
- 596 IF NOT FrameExists( TheFile, StartFrame ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 597 RETURN;
- 598 END;
- 599 M2Strings.Assign( StartFrame, NextFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 600 ScrnTypes.InitDisplayFrame( TmpFrame, VWindows.CurrentWindow );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 601 LOOP
- 602 DspFiles.ReadFrame( TheFile, TmpFrame, NextFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 603 ScrnUtl1.GetFrameLinks( TmpFrame, FrameAbove, FrameBelow,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 604 FrameLeft, FrameRight );
- ***** ^ not supported yet
- ***** ^ not supported yet
- 605 IF (FrameAbove[0] # 0C) OR (FrameBelow[0] # 0C) OR
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 606 (FrameLeft[0] # 0C) OR (FrameRight[0] # 0C) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 607 GenLists.NewList( FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 608 LoadFrameList( TheFile, NextFrame, FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 609 ControlSeparately( FrameList, NextFrame, dumc,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 610 DummyName );
- ***** ^ not supported yet
- 611 DisposeFrameList( FrameList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- 612 ELSE
- 613 FramePainter.ShowDisplayFrame( TmpFrame, 0, 0, 0, 0 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 614 InputManager.ControlFrame( TmpFrame, 0, '', FALSE, NextFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 615 END;
- 616 IF PosUtils.Equal( NextFrame, ScrnTypes.ProgramExit ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 617 EXIT;
- 618 END;
- 619 IF PosUtils.Equal( NextFrame, CheckFrame ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 620 ErrorNames.WarningName('CircSeq');
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 621 EXIT;
- 622 END;
- 623 IF NOT FrameExists( TheFile, NextFrame ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 624 EXIT;
- 625 END;
- 626 END;
- 627 M2Strings.Assign( NextFrame, StartFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 628 ScrnUtl2.CloseDisplayFrame( TmpFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 629 END FrameSeq2;
- ***** ^ not supported yet
- 630
- 631
- 632 PROCEDURE FindNextField( TheFrame: ScrnTypes.DisplayFrame; typ:
- ***** ^ not supported yet
- 633 CHAR; VAR spot: CARDINAL; VAR FieldPtr:
- 634 ScrnTypes.InputFieldPtr ): BOOLEAN;
- ***** ^ not supported yet
- 635 VAR
- 636 found: BOOLEAN;
- 637 ListEnd: CARDINAL;
- 638 BEGIN
- 639 ListEnd := ScrnUtl1.FieldListTotal( TheFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 640 FieldPtr := NIL;
- ***** ^ not supported yet
- 641 found := FALSE;
- 642 WHILE (spot <= ListEnd) AND (NOT found) DO
- 643 ScrnUtl1.GetFieldPtr( TheFrame, spot, FieldPtr );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 644 IF (typ = 0C) OR (FieldPtr^.typ = typ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- 645 found := TRUE;
- 646 ELSE
- 647 INC( spot );
- ***** ^ undeclared identifier
- ***** ^ not supported yet
- 648 END;
- 649 END;
- 650 RETURN found;
- 651 END FindNextField;
- ***** ^ not supported yet
- 652
- 653
- 654 PROCEDURE GetStrResponse( TheFile:
- 655 ScrnTypes.DisplayFile; FrameName, Default: ARRAY
- ***** ^ not supported yet
- 656 OF CHAR; VAR TheStr: ARRAY OF CHAR ): BOOLEAN;
- ***** ^ not supported yet
- ***** ^ not supported yet
- 657 VAR
- 658 MsgFrame: ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 659 fnum : CARDINAL;
- 660 FieldPtr: ScrnTypes.InputFieldPtr;
- ***** ^ not supported yet
- 661 result: BOOLEAN;
- 662 NextFrame: ScrnTypes.AFrameName;
- ***** ^ not supported yet
- 663 TmpFrame: ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 664 BEGIN
- 665 ScrnTypes.InitDisplayFrame( MsgFrame, VWindows.CurrentWindow );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 666 DspFiles.ReadFrame( TheFile, MsgFrame, FrameName );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 667 fnum := 1;
- 668 IF NOT FindNextField( MsgFrame, ScrnTypes.StringCode, fnum,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 669 FieldPtr ) THEN
- ***** ^ not supported yet
- 670 result := FALSE;
- 671 ELSE
- 672 ChangeField( MsgFrame, Default, FieldPtr^.fnam, TRUE );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 673 FramePainter.ShowDisplayFrame( MsgFrame, 0, 0, 0, 0 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 674 InputManager.ControlFrame( MsgFrame, 1, '', FALSE, NextFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 675 IF PosUtils.Equal( MsgFrame^.parent, NextFrame ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 676 result := FALSE;
- 677 ELSE
- 678 result := TRUE;
- 679 END;
- 680 ReadInput( MsgFrame, TheStr, FieldPtr^.fnam );
- ***** ^ undeclared identifier
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 681 END;
- 682 StrEdit.CrunchBlanks( TheStr );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 683 ScrnUtl2.CloseDisplayFrame( MsgFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 684 RETURN result;
- 685 END GetStrResponse;
- ***** ^ not supported yet
- 686
- 687
- 688 PROCEDURE ReadShowAndCntrl( TheFile: ScrnTypes.DisplayFile;
- ***** ^ not supported yet
- 689 TheFrame: ScrnTypes.DisplayFrame; VAR FrameName :
- ***** ^ not supported yet
- 690 ScrnTypes.AFrameName );
- ***** ^ not supported yet
- 691 BEGIN
- 692 DspFiles.ReadFrame( TheFile, TheFrame, FrameName );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 693 FramePainter.ShowDisplayFrame( TheFrame, 0, 0, 0, 0 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 694 InputManager.ControlFrame( TheFrame, 1, '', FALSE, FrameName );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 695 END ReadShowAndCntrl;
- ***** ^ not supported yet
- 696
- 697
- 698 PROCEDURE RdShwAndCntrlConst( TheFile: ScrnTypes.DisplayFile;
- ***** ^ not supported yet
- 699 TheFrame: ScrnTypes.DisplayFrame; FrameName : ARRAY OF CHAR );
- ***** ^ not supported yet
- ***** ^ not supported yet
- 700 VAR
- 701 TmpName: ScrnTypes.AFrameName;
- ***** ^ not supported yet
- 702 BEGIN
- 703 M2Strings.Assign( FrameName, TmpName );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 704 ReadShowAndCntrl( TheFile, TheFrame, TmpName );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 705 END RdShwAndCntrlConst;
- ***** ^ not supported yet
- 706
- 707
- 708 PROCEDURE Input( TheFrame: ScrnTypes.DisplayFrame; VAR
- ***** ^ not supported yet
- 709 FrameName : ScrnTypes.AFrameName );
- ***** ^ not supported yet
- 710 BEGIN
- 711 DspFiles.ReadFrame( TheFrame^.FromFile, TheFrame,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 712 FrameName );
- ***** ^ not supported yet
- 713 FramePainter.ShowDisplayFrame( TheFrame, 0, 0, 0, 0 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 714 InputManager.ControlFrame( TheFrame, 1, '', FALSE, FrameName );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 715 END Input;
- ***** ^ not supported yet
- 716
- 717
- 718 PROCEDURE InputConst( TheFrame: ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 719 FrameName : ARRAY OF CHAR );
- ***** ^ not supported yet
- 720 VAR
- 721 TmpName: ScrnTypes.AFrameName;
- ***** ^ not supported yet
- 722 BEGIN
- 723 M2Strings.Assign( FrameName, TmpName );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 724 DspFiles.ReadFrame( TheFrame^.FromFile, TheFrame,
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 725 TmpName );
- ***** ^ not supported yet
- 726 FramePainter.ShowDisplayFrame( TheFrame, 0, 0, 0, 0 );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 727 InputManager.ControlFrame( TheFrame, 0, '', FALSE, TmpName );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 728 END InputConst;
- ***** ^ not supported yet
- 729
- 730
- 731 PROCEDURE ReadInput(VAR TheFrame : ScrnTypes.DisplayFrame; VAR TheStr :
- ***** ^ not supported yet
- 732 ARRAY OF CHAR; FieldName : ARRAY OF CHAR);
- ***** ^ not supported yet
- ***** ^ not supported yet
- 733 VAR
- 734 FieldPtr : ScrnTypes.InputFieldPtr;
- ***** ^ not supported yet
- 735 ImageRec: ScrnTypes.ImageElement;
- ***** ^ not supported yet
- 736 BEGIN
- 737 IF NOT ScrnUtl1.FindField( TheFrame, FieldName, FieldPtr, ImageRec ) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 738 NotFieldWarning( FieldName, TheFrame^.ThisFrame );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 739 END;
- 740 M2Strings.Assign(ImageRec.text, TheStr);
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 741 END ReadInput;
- ***** ^ not supported yet
- 742
- 743
- 744 PROCEDURE ReadNextField(VAR TheFrame : ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 745 VAR TheStr : ARRAY OF CHAR; skip : CARDINAL);
- ***** ^ not supported yet
- 746 (* will skip first field if it is input field *)
- 747 VAR
- 748 i : CARDINAL;
- 749 ImagePtr: ScrnTypes.ImageElmtPtr;
- ***** ^ not supported yet
- 750 BEGIN
- 751 IF (skip + TheFrame^.CurrentField) >
- ***** ^ not supported yet
- ***** ^ not supported yet
- 752 GenLists.ListLength(TheFrame^.FieldList) THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 753 ErrorNames.WarningName('EndFld');
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 754 END;
- 755 FOR i := 0 TO skip DO
- 756 INC( TheFrame^.CurrentField );
- ***** ^ undeclared identifier
- ***** ^ not supported yet
- ***** ^ not supported yet
- 757 END;
- 758 END ReadNextField;
- ***** ^ not supported yet
- 759
- 760
- 761 PROCEDURE ReadNextInput(VAR TheFrame : ScrnTypes.DisplayFrame;
- ***** ^ not supported yet
- 762 VAR TheStr : ARRAY OF CHAR; skip : CARDINAL);
- ***** ^ not supported yet
- 763 (* will skip first field if it is input field *)
- 764 VAR
- 765 MaxField, i : CARDINAL;
- 766 ImagePtr: ScrnTypes.ImageElmtPtr;
- ***** ^ not supported yet
- 767 BEGIN
- 768 (*
- 769 This version of ReadNextInput added at suggestion of Douglas Wrege
- 770 on 27 Dec 89 to make ReadNextInput skip Display fields, as it did
- 771 in release 1.4. ReadNextField, above, reads every field, display
- 772 or not.
- 773 *)
- 774 MaxField := GenLists.ListLength( TheFrame^.FieldList );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 775 FOR i := 0 TO skip DO
- 776 IF TheFrame^.CurrentField < MaxField THEN
- ***** ^ not supported yet
- ***** ^ not supported yet
- 777 INC( TheFrame^.CurrentField );
- ***** ^ undeclared identifier
- ***** ^ not supported yet
- ***** ^ not supported yet
- 778 ELSE
- 779 ErrorNames.WarningName( 'EndFld' );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 780 END;
- 781 WHILE (TheFrame^.CurrentField < MaxField) AND
- ***** ^ not supported yet
- ***** ^ not supported yet
- 782 (ScrnUtl1.FieldType(TheFrame,TheFrame^.CurrentField)
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 783 = ScrnTypes.DispCode) DO
- ***** ^ not supported yet
- ***** ^ not supported yet
- 784 INC( TheFrame^.CurrentField );
- ***** ^ undeclared identifier
- ***** ^ not supported yet
- ***** ^ not supported yet
- 785 END;
- 786 END;
- 787
- 788 ScrnUtl1.GetFieldImagePtr( TheFrame, TheFrame^.CurrentField, ImagePtr );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 789 M2Strings.Assign( ImagePtr^.text, TheStr );
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- ***** ^ not supported yet
- 790 END ReadNextInput;
- ***** ^ not supported yet
- 791
- 792 BEGIN
- 793 Initialized := FALSE;
- 794 Init();
- ***** ^ not supported yet
- ***** ^ not supported yet
- 795 END ControlUtils.
- ***** ^ not supported yet
- 1163 errors
|