home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_200
/
272_01
/
dispbox.doc
< prev
next >
Wrap
Text File
|
1987-07-10
|
2KB
|
46 lines
NAME
disp_box -- display a box on the screen
SYNOPSIS
void disp_box(row, col, width, height, style);
int row, col; position to display upper left corner
int height, width; size of box
int style; 0 = single line, 1 = double line,
2 = single line reverse video,
3 = double line reverse video
DESCRIPTION
This function uses the features of Datalight's display
package functions, and therefore, must follow the rules
laid down by Datalight for their use. Specifically,
disp_open() must be called prior to using this function,
and the functions may fail of the target system is not a
very close compatible since direct memory writing is being
used. disp_box places a single line or double line box on the
screen with the upper left corner anchored at "row" and "column",
with the size denoted by the "height" and "width" values.
No error checking is done on any value. Invalid values may have
unpredictable results.
EXAMPLE
int i;
disp_open(); /* initialize the package */
disp_cls(); /* clear the screen */
disp_box(0, 0, 80, 24, 1); /* border the entire screen */
/* with double graphics line */
CAVEAT:
if a color attribute has been set before this call,
it will revert to black & white if the "reverse video"
outlines are selected. The attribute is not changed
for the normal video border selections.
This function is found in SMDLx.LIB for the Datalight Compiler