Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Color Source question
Message
De
21/03/2001 13:17:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00487046
Message ID:
00487310
Vues:
8
Brenda:

>I have a container that lays on top of a page of a pageframe. The container must be opaque. Is there anyway to have it change colors when the scheme of the display appearance is changed? I have the ColorSource as 4 Windows Colors (default). But the BackColor does no change as the scheme changes.

Cindy pointed you in the right direction. You must travel up your class hierarchy, including all instances used in forms and other classes, and reset BackColor to default at all level (at design-time not runtime). I usually do this by right-clicking on the BckColor value in the Property sheet and select Reset too Default.

If you want to be even cooler than what Cindy suggested < vbg >, use the Windows standard as your standard and provide an interface from which users can customize most visual elements. It took me about 10 days to develop a component to do just that.

BTW, look UIEnable in Help if you want to change colors when the user selectes another scheme in Windows Color Settings dialog box. The event will fire when the user reactivates your application. It's not perfect but you can get good results wuth it.

Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform