| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Exchanges the foreground and background color on the screen.
InvertWin( [<nTop>] , ;
[<nLeft>] , ;
[<nBottom>], ;
[<nRight>] ) --> cNull
The return value is always a null string ("").
| See also: | InvertAttr(), SetColor() |
| Category: | CT:Video , Screen functions |
| Source: | ct\invrtwin.prg |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example produces a blink effect by inverting
// color attributes in a rectangular area on the screen.
#include "Box.ch"
PROCEDURE Main
SET COLOR TO W+/B
CLS
DispBox( 5, 5, 20, 75, B_SINGLE+ " ", "W+/R" )
@ Row(), Col() SAY "Blink effect for 1 second press a key"
Inkey(0)
WaitPeriod( 100 )
DO WHILE WaitPeriod()
InvertWin1( 20, 5, 5, 75 )
Inkey(.1)
ENDDO
RETURN
http://www.xHarbour.com