Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_Screen.backcolor How to Set to Default Form Backcolor
Message
De
09/04/2004 07:04:10
 
 
À
08/04/2004 17:07:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00893415
Message ID:
00893500
Vues:
10
This message has been marked as a message which has helped to the initial question of the thread.
Sergey has an excellent technique, but with VFP there are always many ways to produce a skinless cat! By using the venerable FP color pairs you can produce a reliable form backcolor as follows:
EVALUATE('RGB('+substr(rgbscheme(1,2),at(',',rgbscheme(1,2),3)+1))
To see how the windows colors map to the FP RBGSCHEME check my Color Spelunker tool in downloads. Using the rgbscheme techniques you can produce pleasing color combinations consistant with the current windows color settings.

Glenn

Glenn

>I want to set the _Screen.backcolor to the same color the forms all use as their background (when forms use the default backcolor). I want to set it before any forms are opened up. Is there a way to determine what the default backcolor for all forms should be before any forms are opened up so I can grab that color and set the screen backcolor to it?
>
>TIA,
>Tracy
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform