home *** CD-ROM | disk | FTP | other *** search
- Procedure WidgitOEScreen;
-
- { MiniGen V1.0 }
-
- Type
- Str80 = String[80];
- FldTyp = Record
- Typ : Char;
- Col,Row,Atr,Len : Byte;
- Txt : Str80;
- End;
-
- Const
- NumFields = 40;
- FieldsArray : Array[1..NumFields] of FldTyp =
- (
- (Typ:'T';Col:1;Row:1;Atr:20;Len:5;Txt:'DATE:'),
- (Typ:'T';Col:65;Row:1;Atr:20;Len:5;Txt:'TIME:'),
- (Typ:'T';Col:31;Row:3;Atr:31;Len:19;Txt:'MiniGen Demo Screen'),
- (Typ:'T';Col:28;Row:4;Atr:21;Len:26;Txt:'Widgits Order Entry System'),
- (Typ:'T';Col:7;Row:6;Atr:18;Len:14;Txt:'Customer Data:'),
- (Typ:'T';Col:16;Row:7;Atr:18;Len:5;Txt:'Name:'),
- (Typ:'F';Col:22;Row:7;Atr:78;Len:25;Txt:''),
- (Typ:'T';Col:11;Row:8;Atr:18;Len:10;Txt:'Address 1:'),
- (Typ:'F';Col:22;Row:8;Atr:78;Len:30;Txt:''),
- (Typ:'T';Col:11;Row:9;Atr:18;Len:10;Txt:'Address 2:'),
- (Typ:'F';Col:22;Row:9;Atr:78;Len:30;Txt:''),
- (Typ:'T';Col:6;Row:10;Atr:18;Len:15;Txt:'City/State/Zip:'),
- (Typ:'F';Col:22;Row:10;Atr:78;Len:12;Txt:''),
- (Typ:'F';Col:36;Row:10;Atr:78;Len:2;Txt:''),
- (Typ:'F';Col:40;Row:10;Atr:78;Len:5;Txt:''),
- (Typ:'T';Col:17;Row:12;Atr:18;Len:4;Txt:'SSN:'),
- (Typ:'F';Col:22;Row:12;Atr:95;Len:3;Txt:''),
- (Typ:'T';Col:25;Row:12;Atr:16;Len:1;Txt:'-'),
- (Typ:'F';Col:26;Row:12;Atr:95;Len:2;Txt:''),
- (Typ:'T';Col:28;Row:12;Atr:16;Len:1;Txt:'-'),
- (Typ:'F';Col:29;Row:12;Atr:95;Len:4;Txt:''),
- (Typ:'T';Col:10;Row:15;Atr:28;Len:11;Txt:'Order Data:'),
- (Typ:'T';Col:3;Row:16;Atr:28;Len:18;Txt:'Method of Payment:'),
- (Typ:'T';Col:22;Row:16;Atr:23;Len:30;Txt:'Cash ( ) Check ( ) Charge ( ) '),
- (Typ:'F';Col:28;Row:16;Atr:80;Len:1;Txt:''),
- (Typ:'F';Col:38;Row:16;Atr:80;Len:1;Txt:''),
- (Typ:'F';Col:49;Row:16;Atr:80;Len:1;Txt:''),
- (Typ:'T';Col:4;Row:17;Atr:28;Len:17;Txt:'Unit of Purchase:'),
- (Typ:'T';Col:22;Row:17;Atr:31;Len:25;Txt:'Each ( ) Box ( ) Case ( )'),
- (Typ:'F';Col:28;Row:17;Atr:80;Len:1;Txt:''),
- (Typ:'F';Col:36;Row:17;Atr:80;Len:1;Txt:''),
- (Typ:'F';Col:45;Row:17;Atr:80;Len:1;Txt:''),
- (Typ:'T';Col:12;Row:18;Atr:28;Len:9;Txt:'Quantity:'),
- (Typ:'F';Col:22;Row:18;Atr:80;Len:6;Txt:''),
- (Typ:'T';Col:31;Row:18;Atr:28;Len:6;Txt:'Price:'),
- (Typ:'F';Col:38;Row:18;Atr:80;Len:6;Txt:''),
- (Typ:'T';Col:12;Row:19;Atr:28;Len:9;Txt:'Discount:'),
- (Typ:'F';Col:22;Row:19;Atr:80;Len:2;Txt:''),
- (Typ:'T';Col:25;Row:19;Atr:30;Len:1;Txt:'%'),
- (Typ:'T';Col:11;Row:20;Atr:28;Len:10;Txt:'Extension:')
- );
-
- Var
- I : Integer;
- WorkStr : Str80;
-
- Begin
- For I := 1 to NumFields do
- With FieldsArray[I] do
- Case Typ of
- 'T' : WinRite(Txt,Col,Row,Atr);
- 'F' : Begin
- FillChar(WorkStr[1],Len,' ');
- WorkStr[0] := Chr(Ord(Len));
- WinRite(WorkStr,Col,Row,Atr);
- End;
- End;
- End; {WidgitOEScreen}