Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find RGB under the mouse pointer
Message
From
06/09/2008 16:26:36
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Miscellaneous
Thread ID:
01118470
Message ID:
01345429
Views:
24
>Thanks you so much for the sample code. Can you also tell tell us how convert that to Hex? 16777215 = #FFFFFF for web design use.

For web, you need to remember that Fox keeps its numbers in BGR, not RGB order. So when you transform your number

lcHex=right(transform(lnColorNumber, "@0"), 6)

you will get six hex digits but the first two will be for blue, then two for green, two for red. You would need to cut this string and put it together in RGB order.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform