Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading Color Properties
Message
 
 
To
07/11/2006 10:57:50
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01167680
Message ID:
01167692
Views:
10
Fred,

Use the RGBComp() from foxtools.fll.
set library to foxtools.fll
lnRed = 0
lnBlue = 0
lnGreen = 0
RGBComp( rgb(255,0,0), @lnRed, @lnGreen, @lnBlue )
? lnRed, lnGreen, lnBlue
RGBComp( rgb(0,255,0), @lnRed, @lnGreen, @lnBlue )
? lnRed, lnGreen, lnBlue
>if you query/return/read a color property (eg Cala=This.ForeColor) you get something like 128 (numeric) but the physically you see 128,0,0 as the property setting. How can I return the 128,0,0 exactly as it is ?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform