Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_shadowit() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_SHADOWIT()

 DESCRIPTION

 C_SHADOWIT() draws a shadow around an object that is already
 displayed on the screen.  The function draws a non-destructive
 shadow so the characters on the screen, where the shadow is drawn,
 are not overwritten.  There are two types of shadows that can be
 specified which determine where the shadow appears around the
 object.  The shadow color may also be specified.

 SYNTAX

 C_SHADOWIT(st_row, st_col, end_row, end_col [,type] [,color])

 PARAMETERS

 st_row (N), st_col (N), end_row (N), and end_col (N) define the
 upper left and lower right coordinates of the object on the screen
 to draw the shadow around.

 type (N) is the type indicator which determines the position of the
 shadow around the object.  If type is not specified, one (1) is
 used.  The shadow types are as follows:

 TYPE   SHADOW POSITION
 ----   ---------------
 1      Left side and bottom
 2      Right side and bottom

 color (C) is the color to draw the shadow.  If color is not
 specified, a combination of the current Clipper foreground color
 and a black background color is used.  To insure a black shadow
 around the area, specify the color parameter as "W/N" (white on
 black) or specify "N+/N" (gray on black) for a gray shadow.

 RETURNS

 There is no return value.

 EXAMPLES

 setcolor("W/B")                    && Set color to white on blue
 clear                              && Clear the screen with blue background
 @ 12,8  "Display text on screen"   && Write text to show non-
 @ 12,65 "Display text on screen"   && destructive shadow.
 @ 18,8  "Display text on screen"   &&
 @ 18,65 "Display text on screen"   &&

 setcolor("W/R")
 @ 10,10 clear to 20,70             && Draw a double box in white on red
 @ 10,10 to 20,70 double
 c_shadowit(10,10,20,70,2,"w/n")   && Shadow the right side and bottom of
                                   && the box in a black shadow color without
                                   && overwriting characters on the screen


See Also: C_SHADOW() C_XSHADOW()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson