Sign in to follow this  
Followers 0
Max Kipness

Change slider color?

5 posts in this topic

Hello,

I've placed a slider control on a tab. The tab is a lighter gray color, and the slider shows up as a darker gray. Would be a perfect match if the tab was not there.

Is there any way to change the color of the slider control? Using GUICtrlSetBkColor does not work even though it would appear to be the correct method.

Can anyone help?

Thanks,

Max

Share this post


Link to post
Share on other sites



Hello,

I've placed a slider control on a tab. The tab is a lighter gray color, and the slider shows up as a darker gray. Would be a perfect match if the tab was not there.

Is there any way to change the color of the slider control? Using GUICtrlSetBkColor does not work even though it would appear to be the correct method.

Can anyone help?

Thanks,

Max

PCP (Post code Please)

Share this post


Link to post
Share on other sites

Being the slider control is technically a TrackBar control and that control doesn't have a message for color, might be able to use a window api call for setting the color.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Any pointers on how to use an API call to do this?

Thanks,

Max

Share this post


Link to post
Share on other sites

Any pointers on how to use an API call to do this?

Thanks,

Max

Not sure myself, but looking at MSDN with Vista there will be a new style (TBS_TRANSPARENTBKGND)


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0