| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Replaces a color attribute in a screen region.
ColorWin( [<nTop>] , ;
[<nLeft>] , ;
[<nBottom>] , ;
[<nRight>] , ;
[<xNewColor>], ;
[<xOldColor>] ) --> cNull
The return value is always a null string ("").
| See also: | ColorRepl(), ColorToN() |
| Category: | CT:Video , Screen functions |
| Source: | ct\screen3.prg |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example displays a box and changes its color.
#include "Box.ch"
PROCEDURE Main
SET COLOR TO N/B
CLS
DispBox( 5, 5, 20, 75, B_SINGLE+ " ", "W+/R" )
WAIT
ColorWin( 20, 5, 5, 75, "N/BG" )
RETURN
http://www.xHarbour.com