home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
dos
/
tegl_ii
/
intro
/
grtest01.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-04-06
|
1KB
|
46 lines
{-----------------------------------------------------------------------------}
{ TEGL Windows ToolKit II }
{ Copyright (C) 1990, TEGL Systems Corporation }
{ All Rights Reserved. }
{-----------------------------------------------------------------------------}
{ }
{ This program demonstrates the automatic loading of TEGL Drivers located }
{ anywhere on the DOS path as well as the direct drop-in replacement of the }
{ Borland's Graph unit. You can compile using Borland's Graph unit simply by }
{ changing TGraph to Graph in the uses statement. }
{ }
{-----------------------------------------------------------------------------}
{ $define BGI}
uses
crt,
{$ifdef BGI}
graph;
{$else}
tgraph;
{$endif}
var gd,gm : integer;
ch : char;
begin
gd := ega;
gm := egahi;
initgraph(gd,gm,'..');
if gd<0 then
begin
writeln('Error registering driver:',GraphErrorMsg(GraphResult));
halt(1);
end;
setcolor(blue);
rectangle(0,0,getmaxx,getmaxy);
while keypressed do ch:=readkey;
while not keypressed do;
while keypressed do ch:=readkey;
closegraph;
end.