Jump to content
alank2

Trying to change a speedbutton background color, but having problems

Recommended Posts

I right clicked the speed button and chose Edit Custom Style.  I replaced the background with a TRectange and set its fill to the color I want.  It works on my development system (Win10), but when I take it to a Win7 box, it does not work and the background color is not there.

 

In the style designed it says Platform Windows 10 Desktop, but the only other option is Default.  When I select default it does not have a "SpeedButton1Style1".

 

Any way I can set this to work on any system that runs it?

Share this post


Link to post

I tried adding a Win7 and Win8 to the Win10 under the custom button, but still when the app runs on the win7 box it has a different style.

 

I also tried turning off "Enable Runtime Themes" thinking maybe it wouldn't restyle the application and go with what it is and this did not solve the issue either.

Share this post


Link to post

Hi,

 

Change the "Windows 10 Desktop" style  to "Default". The best way to do that is to remove "Default" style  and then rename "Windows 10 Desktop" to blank  

Share this post


Link to post

Thanks Serge; I will give this a try.  My solution yesterday was to just put a TImage on top of the speedbutton and change hittest/align=client.

Share this post


Link to post

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

×