home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
vpbgib2.zip
/
BGIMSG.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-11-02
|
2KB
|
63 lines
{█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█}
{█ █}
{█ Virtual Pascal Run-time Library v1.1 █}
{█ BGI Graphics messages definitions █}
{█ ─────────────────────────────────────────────────█}
{█ Copyright (C) 1996 fPrint UK Ltd █}
{█ █}
{▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀}
Unit BGIMsg;
interface
uses
Use32;
const
MaxDisp = 4100;
MaxPts = 1024;
MaxPar = 4092;
BGIPipeName : String = '\PIPE\BGIPISRV';
BGIQueueName : String = '\QUEUES\BGIPISRV';
Maxinput = 100;
bgi_Init = 0; // Initialisation
bgi_key = 1; // Keyboard event
bgi_mPos = 2; // Mouse position event
bgi_mou = 3; // Mouse click event
type
PointType = record x,y:integer end;
PolyT = array [1..maxpts] of PointType;
CommandListT = record
case byte of
0: (w: array [0..MaxPar] of word);
1: (i: array [0..MaxPar] of integer);
2: (p: array [0..1] of word;s: String);
3: (nr: word;pts: PolyT);
4: (i1,i2,i3,i4,i5,i6:integer);
5: (w1,w2,w3,w4,w5,w6:word);
6: (x1,y1,x2,y2:integer);
7: (x,y:integer; Buffer:Pointer; m:Word );
end;
DisplayListT = record
case boolean of
true: (w: array [0..MaxDisp] of word);
false:(i: array [0..MaxDisp] of integer);
end;
BGIResArT = array [0..256] of word;
pInputT = ^InputT;
InputT = record
case Byte of
0: (X,Y: Word);
1: (Ch: Char);
2: (EventType: byte; EventX, EventY: Word);
end;
pInputArrayT = ^InputArrayT;
InputArrayT = Array[0..MaxInput] of InputT;
implementation
end.