Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Color Source question
Message
From
21/03/2001 13:17:34
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00487046
Message ID:
00487310
Views:
9
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform