Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change command button color?
Message
From
21/11/2001 16:46:01
 
 
To
21/11/2001 13:53:39
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00582582
Message ID:
00584718
Views:
32
>That's understood of course. Ideally, the user could select from a standard windows color scheme, let the colors change with the windows desktop, or select specific colors for specific features. The issue here is that almost all of our customers do not think the MICROSOFT way. In other words, they think that part of paying for a custom app is getting the ability to customize their colors also and have it either change with the desktop or have the option of having the colors be separate.

Weird. Can't imagine why they'd want to go to all that trouble. BTW, you can call the Display Properties applet from a VFP app, so that they don't have to go to Windows to change their Windows colors. Just use:

RUN /n Control Color

>I would love to extract colors from the existing windows color scheme. Is there an example of that somewhere?

You use the GetSysColor API function. Here's the declaration:

DECLARE INTEGER GetSysColor IN Win32API INTEGER nIndex

Here's a sample call:

This.nHighlightcolor = GetSysColor(14)

I've written about this a couple of times in FPA's Q&A column. The initial article was in the July '99 issue and I did a followup in the most recent issue (November '01).

Hope this helps.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform