Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtain Progressbar Default color
Message
From
19/09/2005 17:29:30
Luis Navas
Independent Consultant
Auckland, New Zealand
 
 
To
19/09/2005 16:51:06
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01050910
Message ID:
01051059
Views:
10
I want to emulate Windows Common control Progressbar with VFP controls only, but I want to use the default backcolor for the progress indicators. In the windows XP defaults theme are green. But wich function gives you that color?=

Thanks.

Luis


>Hmm.. this is a bit confusing me. I tried changing the XP themes (XP SP2), it gives me Dark Blue. What kind of progressbar are you using?
>
>>Thanks but this gives me a blue, I already tried with this function. In Windows XP by default is a green color, but if you change the theme, it also changes the the progressbar color.
>>
>>Luis
>>
>>
>>>>HI, is there anyway to obtain the default color for a progressbar. In windows XP default is green, but if I change the themes it also changes the backcolor of progressbar, I want to be abble to detect this.
>>>>
>>>>Thanks
>>>>
>>>>Luis
>>>
>>>
>>>Hi Luis,
>>>
>>>I'm not exactly sure about this, but I think the progressbar color is the same color with menu highlight. So try this:
>>>
>>>Declare Long GetSysColor in User32 Integer nColorIndex
>>>?GetSysColor( 13 )
>>>
>>>
>>>HTH
I never forget a face, but in your case I will make an exception :-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform