Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
@...SAY COLOR - Function Reference
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01248126
Message ID:
01248141
Vues:
26
Naomi,

>What does the return of the function look like? Anyway, as Tore noted, RGB() would work as well. I was just trying to find some help on this command online and looks like this is an undocumented feature. At least not in the current MSDN online.

This is from the help of 2.6 Windows on @SAY command
For a list of colors and their corresponding color letters, see SET COLOR Commands Overview or Color Table by Color Pair.
A color pair can also be specified with a set of 6 RGB (Red Green Blue) color values separated by commas.  The first 3 color values specify the foreground color and the second 
3 color values specify the background color.  The color values can range from 0 through 255.  
The R/W color pair in the example above can also be specified with this RGB color pair:



RGB(255,0,0,255,255,255)



For example:



@ 2, 2 SAY 'This is red on white' COLOR R/W
@ 4, 2 SAY 'This is Color Scheme 16' COLOR SCHEME 16
IF _WINDOWS		&& FoxPro for Windows.
	@ 6, 2 SAY 'This is red on white' COLOR RGB(255,0,0,255,255,225)
ENDIF
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform