Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine when to use black or white as label forecolor
Message
From
13/06/2005 13:51:59
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01022663
Message ID:
01022853
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform