xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

ScreenMix()

Mixes a character string with color attributes.

Syntax

ScreenMix( <cString>   , ;
           <cColorAttr>, ;
          [<nRow>]     , ;
          [<nCol>]       ) --> cNull

Arguments

<cString>
This is a character string to display on the sccreen.
<cColorAttr>
A character string holding color attributes for each individual character of <cString>.
<nRow>
A numeric value indicating the screen row for display. It defaults to Row().
<nCol>
A numeric value indicating the screen column for display. It defaults to Col().

Return

The return value is always a null string ("").

Note:  the function leaves the cursor position unchanged.

Info

See also:ColorToN(), SayScreen()
Category: CT:Video , Screen functions
Source:ct\screen2.prg
LIB:xhb.lib
DLL:xhbdll.dll

Example

// 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

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe