WSetColor() - Sets the colour for a window
Sets and returns a window's colour setting
──────────────────────────────────────────────────────────────────────────────
Syntax
WsetColor( [<nWindow>], [<cNewAttr | nNewAttr>] ) --> nOldColour
Arguments
<nWindow> optional window perform this action on. If left out, the
currently active window is used.
[<cNewAttr | nNewAttr>] - is the colour to apply to the window.
Returns
WsetColor() returns the old colour as a string.
Description
WsetColor() allows you to set the colour for a <nWindow>. If <nWindow>
is not specified then the current window is used. If a colour is not
specified, then WsetColor() will return the current colour setting of
the window as a string.
Examples
■ This example returns the current windows colour:
WsetColor()
■ This example sets the colour for the current window
WsetColor(, "GR+/B")
Files: Library is MRWINDOW.LIB.