Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get color and save to a config file
Message
De
20/12/2019 13:38:17
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01672356
Message ID:
01672359
Vues:
54
>Hi,
>
>What is a good practice to allow user to select colors?
>1. I can use GetColor() and save the returned number to a configuration file and then use it. But I don't like this approach since I cannot understand the number and manually change it to something I understand.
>2. If possible to convert the color number returned from the GetColor() to a RGB() value, then I could save this value to a configuration file. But I don't know how to convert the number into the RGB() value. Please let me know if it is possible and how.
>or if it is simply better to get the RGB value and save it to the configuration.

There's a function in FoxTools to do the conversion; it's called RGBCOMP().

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform