WSetShadow() - Sets the window shadow colours
Sets the window shadow colours
──────────────────────────────────────────────────────────────────────────────
Syntax
WSetShadow( [<cAttr>] ) --> nOldAttr
Argument
<cAttr> is the color attribute for window shadows. It can be
represented as a numeric string ("nn/nn") or as a color string
("cc/cc"). A value of -1 turns off the shadow display.
() When you call the function without parameters, it returns the
current shadow color setting.
Returns
WSetShadow() returns the previously set shadow color, or it returns -1
if no shadow color has been set.
Description
WSetShadow() sets individual color attributes for shadows of every
window, which are displayed below and to the right of each window. The
WSetShadow() setting then applies to all subsequently opened windows.
Notes
■ using shadows erases the the contents of the active window prior to
the drawing of the shadow
Example
In order to experiment with shadows, you should first fill the screen
with a character like CHR(176):
WSetShadow("N+") // Gray shadows
WOpen(1, 1, 10, 50)
WBox()
WSetShadow(-1) // Switch shadow display off
WOpen(15, 1, 20, 50)
WBox()
Inkey(0) // Switch on move mode using
// SCROLL-LOCK
WAClose()
Files: Library is MRWINDOW.LIB.