InvertWin() - Invert a colour string
Inverts all attributes in an area of the screen
──────────────────────────────────────────────────────────────────────────────
Syntax

InvertWin( [<nTop>], [<nLeft>], [<nBottom>], [<nRight>]) --> cNull

Arguments

<nTop> is the top row coordinate. The default is the cursor
position.

<nLeft> is the left column coordinate. The default is the cursor
position.

<nBottom> is the bottom coordinate. The default is the bottom row of
the active window.

<nRight> is the rightmost column for the bottom-right corner of the
area. The default is the end of the screen area.

Returns

InvertWin() always returns a null string, or "".

Description

InvertWin() allows you to invert colour strings within a specified area
of the active window. Colour attributes are swapped. Foreground colours
are swapped for the back ground colours and the background colours
become the foreground colours.

Notes

■ This function does not alter the cursor position.

Examples

■ Invert the attributes of the currently active window:

InvertWin(0, 0, MaxRow(), MaxCol())


Files: Library is MRWINDOW.LIB.