Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_SCREEN.backcolor=xx
Message
From
03/06/2002 01:15:43
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
 
 
To
03/06/2002 00:03:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00663936
Message ID:
00663951
Views:
19
>>When I set the screen background it requires a number if I use, for example:
>>
>>_SCREEN.backcolor=9454143 I get a dark blue screen,
>>
>>but where can I find how these numbers corespond to the numbers like on a Form if I use Backcolor 0,64,128 which is roughly the same color.
>
>Take a look at the RGB() function.

I think he want to extract R,G,B values from a specified number

This can be done using algorithm below
RGBColor = _Screen.BackColor 
Red = RGBColor % 256 
Green = FLOOR( RGBColor % 256^2 / 256)
Blue = FLOOR( RGBColor / 256^2)
Previous
Reply
Map
View

Click here to load this message in the networking platform