Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine when to use black or white as label forecolor
Message
De
13/06/2005 13:51:59
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01022663
Message ID:
01022853
Vues:
19
Hugo,

Thank you for sharing your code examples.

> I found a Microsoft article on how to change from RGB to HSL and I wrote a Color class to deal with several of this types of transformations

Here's an interesting link from Sergey as posted in Thread #967748.

How To Converting Colors Between RGB and HLS (HBS)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q29240

> I use the Hue trick to highlight the selected record in a grid when the backcolor depends on the records, for example some records are red-ish some are green-ish etc, the to highlight the current color I change the HUE to make the selected record brighter.

What a great idea! I always wondered how some applications managed to do this.

Thanks again for your help, Hugo!

Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform