Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_SCREEN.backcolor=xx
Message
From
05/06/2002 01:24:42
 
 
To
02/06/2002 23:59:24
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00663936
Message ID:
00664826
Views:
15
>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.

Hi Joel

The numbers in your example refer to the RGB color scheme i.e. RGB(0,64,128). This RGB function returns a number and you can convert a number back to its components using:

R = mod( #, 256 )
G = mod( int( # / 256 ), 256 )
B = mod( int( # / 65536

where # is the color number - in your example 9454143. (I found this solution here on the UT but cannot remember who posted it).

HTH

Jos
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform