home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
NEWS
/
554
/
JUILLET
/
NAP_TEST.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-10-07
|
2KB
|
43 lines
{─ Fido Pascal Conference ────────────────────────────────────────────── PASCAL ─
Msg : 219 of 228
From : Warren Zatwarniski 1:140/111.0 14 Jul 93 22:45
To : All
Subj : NAP_TEST.PAS
────────────────────────────────────────────────────────────────────────────────}
Program NAP_TEST;
Uses
DOS, NAP_DRAW;
Var
OutFile : Text;
Begin
Assign(OutFile,'TEST.NAP');
Rewrite(OutFile);
PelSize.X := 0; {Change pel size to (0,0)}
PelSize.Y := 0;
Write(OutFile,N_Reset(3,2,True,True,True,True,True,FALSE,True));
Write(OutFile,N_Domain);
{Do a Reset, don't reset Macros, an existing program}
{may have soem set up }
Write(OutFIle,N_SelectColor(10)); {Let's select color 10 }
Write(OutFile,NAPSetColor+N_SetColor(7,0,0)); {And make it pure green }
Write(OutFile,N_Text(4,8)); {Make Text Size 4x8 }
Write(OutFile,PointSetAbs+N_POINT(127,100)); {Output a starting point }
Write(OutFile,'This should start at the centre');
Write(OutFile,N_SelectColor(7)); {Change color to 7, white}
Write(OutFile,PointSetAbs+N_Point(0,192));
Write(OutFile,'This is in the top left and white');
Write(OutFile,N_SelectColor(9));
Write(OutFile,SetRectF+N_POINT(0,0)+N_Point(255,10));
{Draw a filled rectangle from (0,0) to (255,10) }
{First point is a starting point, second is relative}
Write(OutFile,N_SelectColor(11));
Write(OutFile,SetArcFilled+N_POINT(10,100)+N_POINT(50,0));
{Draw a filled circle starting at (10,100) and going}
{out to (60,100). Remember second point is relative }
Writeln(OutFile); {Do a writeln to finish line off }
Close(Outfile);
End.