Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement