Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding sysmetric info to build Office 2003 gradients
Message
From
06/06/2005 12:41:09
 
 
To
06/06/2005 11:46:28
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01020266
Message ID:
01020556
Views:
30
This message has been marked as the solution to the initial question of the thread.
Malcolm,

I am just about to do this for a .NET control but I believe you need to do some of the following:-

1] Determine if the version of the OS supports themes.
2] If it does find out if themes are in use using something like:-
declare integer IsThemeActive in UxTheme
3] Now pick the relevant colour indexes for the gradient using the following:-
declare integer GetSysColor in user32 integer nIndex 
I think the gradient is based on a combination of the following entries:-

COLOR_GRADIENTACTIVECAPTION
COLOR_ACTIVECAPTION

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/getsyscolor.asp

Sorry for being vague, but like I said I am about to start implementing this support.

Regards
Neil
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform