| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Mixes a character string with color attributes.
ScreenMix( <cString> , ;
<cColorAttr>, ;
[<nRow>] , ;
[<nCol>] ) --> cNull
The return value is always a null string ("").
Note: the function leaves the cursor position unchanged.
| See also: | ColorToN(), SayScreen() |
| Category: | CT:Video , Screen functions |
| Source: | ct\screen2.prg |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example displays a word using a different color for
// each letter.
PROCEDURE Main
LOCAL cWord := "xHarbour"
LOCAL cAttr := ""
LOCAL i
CLS
FOR i:=1 TO Len( cWord )
cAttr += Chr(i)
NEXT
ScreenMix( cWord, cAttr, 10, 5 )
RETURN
http://www.xHarbour.com