Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Defining colors.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00153684
Message ID:
00153718
Vues:
18
James,

A couple of ways:

#define YELLOW rgb( 255, 255, 0 )

or

public gnYellow
gnYellow = rgb( 255, 255, 0 )

this.BackColor = YELLOW && gnYellow

If you use the #define you can put them all in a .h file to include in your forms and classlibs.

>How would I define a color and use it? I want to be able to substitute the name for the actual RGB command. For example I would like to use thisform.background=Yellow, instead of thisform.background=rgb(255,255,0).
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform