[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FBox FastTTT
Purpose To draw a box and clear the screen inside the box.
Declaration FBox(X1,Y1,X2,Y2,F,B,Boxtype:integer);
X1 is the top left X coordinate (1..79)
Y1 is the top left Y coordinate (1..24)
X2 is lower right X coordinate (2..80)
Y2 is lower right Y coordinate (2..25)
F is the foreground color (0..15)
B is the background color (0..15)
Boxtype is the box line type (see remarks)
Uses FastTTT.
Remarks The normal values for the Boxtype are:
1 Single line
2 Double line
3 Single top/bottom, double sides
4 Double top/bottom, single sides
If a BoxType of 0 is passed, the procedure will use a space
(' ') as the box character. If any other number (i.e.
5..256) is used, the box is drawn using the ascii character
represented by the number. Refer to page 568 of the Turbo
Pascal Owner's Handbook to see the ascii table.
Example
USES CRT, FASTTTT;
BEGIN
FBOX(1,1,80,12,WHITE,RED,1);
FBOX(1,13,80,25,BLUE,LIGHTGRAY,2);
END.
A single lined box would be drawn on the top half of the screen and
the area inside the box would be cleared to a red background. A double
lined box would be drawn in the lower half, and the area inside the
box would be cleared to lightgray. Note that the CRT unit was also
USED, so the colors could be refered to by name rather than their
numeric code.
See Also:
Box
GrowFBox
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson