General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only