Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_SCREEN.backcolor=xx
Message
De
03/06/2002 01:15:43
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
 
 
À
03/06/2002 00:03:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00663936
Message ID:
00663951
Vues:
21
>>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform