Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading Color Properties
Message
From
07/11/2006 11:05:47
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
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:
01167685
Views:
13
>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 ?
>
>Please help
>
>Fred Matano
lparameters tnColor
local lnRed,lnGreen,lnBlue
lnRed	= bitrshift(bitand(tnColor, 0x0000FF),0)
lnGreen	= bitrshift(bitand(tnColor, 0x00FF00),8)
lnBlue	= bitrshift(bitand(tnColor, 0xFF0000),16)
return "rgb("+trans(lnRed)+","+trans(lnGreen)+","+trans(lnBlue)+")"
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform