Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>c4w_colors()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
C4W_Colors()
Return the RGB values for the Clipper colour setting
------------------------------------------------------------------------------

Syntax
C4W_Colors( @ <nTextColor>, @ <nBkColor> )   -->   nil

Arguments
<nTextColor> is the variable to be set to the text
(foreground) colour.  It must be passed by reference (using
Clipper's "@" operator).

<nBkColor> is the variable to be set to the background colour.
It must be passed by reference (using Clipper's "@" operator).

Returns
NIL.

Description
This function lets you access Clipper colours as Windows RGB
values.

Example
cSave := SetColor( cNewColour )
C4W_Colors( @nTextRGB, @nBkRGB )
SetColor( cSave )
? "Text Red value", GetRValue( nTextRGB )

See Also: SetBkColor() SetTextColor()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson