Jump to content
Harry Bego

Windows 11 checkbox and radio button color

Recommended Posts

I’m finding that under Windows 11 unstyled checkboxes and radio buttons have a solid blue color when checked = true. Is there a way to prevent this and have them look the same as in Windows 10?

 

Using C++Builder 10.4.2.

 

Thanks for any hints!

Share this post


Link to post

I've attached two images so you can see the difference. The left one is from Windows 11, the right one from Windows 10:

CheckBox-Win11.png.bb8a13a84164cfb1819b4119fd3619e0.pngCheckBox-Win10.png.c95f1fbfcc1379c25de0157684165ff0.png

Share this post


Link to post

This is a matter of OS and the great innovation of W11. As you can see, this can only be changed using themes.

Share this post


Link to post
4 minutes ago, David Heffernan said:

Isn't the entire point of the system theme that there is system wide consistency? 

image.png.1a6f2a2f9ccfe880e7e93efa055fbbf4.png

Edited by Attila Kovacs

Share this post


Link to post
16 hours ago, Stano said:

This is a matter of OS and the great innovation of W11. As you can see, this can only be changed using themes.

The issue is unrelated to themes. It’s the same in all themes.

 

Looks like it is a similar thing to what we saw initially in listviews in Windows 10: selected items had a solid blue background.

Share this post


Link to post
1 hour ago, Harry Bego said:

The issue is unrelated to themes. It’s the same in all themes.

 

Looks like it is a similar thing to what we saw initially in listviews in Windows 10: selected items had a solid blue background.

In this case I don't understand what you are saying. I thought you wanted to override the default system theme. But it seems I misunderstood you.

Share this post


Link to post

Is that only in your Delphi application or in all applications? In the latter case I concur with @David Heffernan in the former, please write a QC ticket.

Share this post


Link to post

Here's a screenshot from the preferences dialog in Paint Shop Pro: 

 

PSPWin11.png.a98b57eda93d55b5f09566b5ab162479.png

 

C++Builder itself and MS Word have the same checkboxes as in Windows 10. So looks like these use styles/skins. 

Edited by Harry Bego

Share this post


Link to post

Ok so in Windows 11 the only way to get rid of the solid blue and get decent looking checkboxes and radio buttons is to use styles. I have been using customized styles a lot but not for checkboxes and radio buttons since these didn’t look good at high dpi. But I now find that the new high DPI styles work great and the “Sky” style has nice checkboxes. Also, you can choose a style per control so I can use Sky just for the checkboxes and radio buttons.

 

Problem solved. Thanks for all responses.

Share this post


Link to post

Harry, I have been researching for days on ways to do this and have not been able resolve it. You mentioned Sky style. If you could give me a few steps I could follow to get and apply the style to affect all Windows 11 checkboxes, I would very

much appreciate it.

 

Thanks,

Bill

Edited by Bill P

Share this post


Link to post

Hi Bill, 

 

you can select styles under Project > Options > Application > Appearance.  

There select styles you want to use in the project.

E.g. try Sky. For an impression of a style press Preview.  

Set Default style to use it as default.

 

In the Object Inspector, for a checkbox or radio button set Style elements [seFont,seClient,seBorder]

You can set Stylename to use a non-default style.

 

Hope this helps, Harry

[C++Builder 10.4.2]

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

×