home *** CD-ROM | disk | FTP | other *** search
- {+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}
- { }
- { T E C H N O J O C K S T U R B O T O O L K I T }
- { }
- { Module : Decl.TTT }
- { }
- { Version : 3.0 , October 1, 1986 }
- { }
- { Purpose : Declaration of Type, Const and Var. }
- { }
- { Requirements : N/A }
- { }
- { }
- { This is the first file which must always be included whenever }
- { you want to use any of the Technojocks Turbo Toolkit procedures }
- { and functions. }
- { }
- { }
- { Bob Ainsbury }
- { Technojock }
- { Houston }
- { (713) 293-2760 }
- {+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}
- Const
- Max_choices = 25; {No of prompts in menu system see Menu.TTT}
- Max_WindowsandScreens = 8; {used in Window.TTT}
- Max_screens = 4; {used in Window.TTT}
- WindowCounter : byte = 0; {used in Window.TTT}
- MaxInputFields = 40; {used in IO.TTT}
- {
- ***************
- * T Y P E *
- ***************
- }
- TYPE
- Regpack = record
- Ax,Bx,Cx,Dx,Bp,Si,Di,Ds,Es,Flags:integer
- end;
- String80 = string[80];
- String20 = string[20];
- string30 = string[30];
- string4 = string[4];
- string3 = string[3];
- string2 = string[2];
- Pixel = record
- C : char;
- A : byte;
- end;
- Line = array[1..80] of pixel; {Fastwrit.TTT}
- Image = array [1..4096] of char;
- ScreenImage = record
- ScreenSnap: Image;
- CursorX : integer;
- CursorY : integer;
- end;
- ScreenPtr = ^ScreenImage; {Window.TTT}
- Menu_record = record
- Heading : string80; { '' for no heading}
- Text : array[1..Max_Choices] of string80;
- TotalPicks : integer;
- PicksPerLine : byte;
- AddPrefix : byte; {0 no, 1 No.'s, 2 Lets}
- TopLeftXY : array[1..2] of byte; {X,Y}
- Boxtype : byte; {0,1,2,3, >3}
- Colors : array[1..5] of byte; {HF,HB,LF,LB,Box}
- AllowEsc : boolean; {true if Esc will exit}
- end;
- Str_Field_Defn = record
- Upfield : byte;
- Downfield : byte;
- Leftfield : byte;
- Rightfield: byte;
- X : byte;
- Y : byte;
- InString : ^string80;
- StrLength : byte;
- Format : string80;
- Message : string80;
- MsgX : byte;
- MsgY : byte;
- CursorX : byte;
- CursorInit: byte;
- StrLocX : byte;
- end;
- Str_Field_Ptr = ^Str_Field_Defn;
- InputZone = record
- HiF : byte;
- HiB : byte;
- LoF : byte;
- LoB : byte;
- MsgF : byte;
- MsgB : byte;
- TotalFields: byte;
- CurrentField : byte;
- IOEsc : boolean;
- IO_FieldsSet : boolean;
- Displayed : boolean;
- IO_Beepon : boolean;
- HelpAddress : integer;
- IO_Putunderline : boolean;
- IO_Insert : boolean;
- end;
-
- {
- ***************
- * C O N S T *
- ***************
- }
- Const
-
- Snow : boolean = false; {indicates if snowy IBM CGA installed}
- F1 = #59; CursorUp = #72; InsKey = #82;
- F2 = #60; CursorDown = #80; DelKey = #83;
- F3 = #61; CursorLeft = #75; ShiftTabKey = #15;
- F4 = #62; CursorRight = #77;
- F5 = #63; { Non extended below }
- F6 = #64; HomeKey = #71; EscKey = #27;
- F7 = #65; EndKey = #79; Backspace = #8;
- F8 = #66; PgUp = #73; EnterKey = #13;
- F9 = #67; PgDn = #81; TabKey = #9;
- F10 = #68; MinusKey = #45;
- PlusKey = #43;
-
- IO_Settings : InputZone= (HiF:white;
- HiB:blue;
- LoF:blue;
- LoB:lightgray;
- MsgF:yellow;
- MsgB:red;
- TotalFields:MaxInputFields;
- CurrentField : 1;
- IOEsc : false;
- IO_FieldsSet : false;
- Displayed : false;
- IO_BeepOn : true;
- HelpAddress : 0;
- IO_PutUnderline: true;
- IO_Insert : false);
- FmtChars : set of char = ['!','#','@','*'];
- IOUp = #72;
- IODown = #80;
- IORight = #77;
- IOLeft = #75;
- IODel = #83;
- IOTotErase = #18; {Alt-E}
- IOErase = #32; {Alt-D}
- IOFinish = #79; {End} {maybe change to F10}
- IOEsc1 = #27;
- IOEsc2 = #27;
- IOTab = #9;
- IOShiftTab = #15;
- IOEnter = #13;
- IOIns = #82;
- IOBackSp = #8;
- IORightFld = #116;
- IOLeftFld = #115;
- IOHelp = #59;
- {
- ***************
- * V A R *
- ***************
- }
- Var
- recpack :regpack;
- Funckey: boolean;
- Ch: Char;
- Crtmode : byte absolute $0040:$0049; {7 is mono, else assumed color}
- Monobuffer : image absolute $B000:$0000; {mono screen memory loc}
- Colorbuffer: image absolute $B800:$0000; {color screen memory loc}
- CRTadapter : integer absolute $0040:$0063; {current display adapter}
- VideoMode : byte absolute $0040:$0065; {video port mode byte}
- SavedLine : line;
- Screen : array[1..Max_WindowsandScreens] of ScreenPtr;
- FieldDefn : array[0..MaxInputFields] of Str_Field_Ptr;
-
-