[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
FUNCTION MAKEBOX()
Short:
------
MAKEBOX() Draws a box on the screen and returns saved screen
Returns:
--------
<cScreen> => string containing underlying screen &
colors
Syntax:
-------
MAKEBOX(nTop,nLeft,nbottom,nRight,[cColor],[nShadowPos])
Description:
------------
Draws a box at screen coordinates <nTop..nRight> and
returns a string containing the underlying screen and previous color.
Box will explode or not based on the setting of SLS_XPLODE().
Default color is setcolor(). Default shadow position
is the setting in SLS_SHADPOS(). These may be passed as
options . Shadow position [nShadowPos] has allowable values of
(1,3,7,9,0) to match the corner positions on the numeric keypad.
0 is no shadow. [cColor] is a valid color string or variable.
Examples:
---------
cBox := MAKEBOX(5,5,10,10)
//draws a box at 5,5,10,10. Color is SETCOLOR().
//shadow position is based on SLS_SHADPOS().
cBox: = MAKEBOX(5,5,10,10,SLS_POPCOL())
//draws a box at 5,5,10,10. Color is SLS_POPCOL().
//shadow position is based on SLS_SHADPOS().
cBox: = MAKEBOX(5,5,10,10,SLS_POPCOL(),9)
//draws a box at 5,5,10,10. Color is SLS_POPCOL().
//shadow position is 9 (upper right hand corner)
Warnings:
----------
Use only UNBOX() to remove screens stored with
MAKEBOX().
Notes:
-------
UNBOX() removes the box and restores the underlying
screen and prior colors.
The shadow will not be drawn if it would go off the
edge of the screen.
Source:
-------
S_MAKEB.PRG
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson