Tk Source Code

View Ticket
Login
Ticket UUID: 4b50b7602849f327892a3be58dfa4442d7a7c07d
Title: ttk::checkbutton and ttk::radiobutton appearance under Windows with high DPI settings
Type: Bug Version: 8.6.4.1
Submitter: anonymous Created on: 2016-02-12 19:25:31
Subsystem: 88. Themed Tk Assigned To: nobody
Priority: 5 Medium Severity: Cosmetic
Status: Closed Last Modified: 2020-05-29 01:59:54
Resolution: Fixed Closed By: bll
    Closed on: 2020-05-29 01:59:54
Description:
Checkboxes and radiobuttons appear with different sizes under Windows 10. They magically fix themselves when you mouse over them. 

Here is what you will need to repeat the issue: 
 - Windows 10 (10586.71 64 bit) or Windows 7 64 bit (6.1.7601)
 - DPI set to 125% (it will not occur with DPI set to 100%) 
 - Activestate 8.6.4 (I have not tried other versions yet) 

Example code:

package require Tk 
set rb rbNone 
ttk::radiobutton .rb1 -text "Radiobutton 1" -variable rb -value rb1 
ttk::radiobutton .rb2 -text "Radiobutton 2" -variable rb -value rb2 
grid .rb1 
grid .rb2 

The last one starts out larger but, as yours, magically gets normal on 
mouse over. 

http://kozmate.net/z/clt/rb-grid-win7-aero.png 


There is further discussion here:

https://groups.google.com/forum/#!topic/comp.lang.tcl/vLNVNWlQ1DU
User Comments: bll added on 2020-05-22 17:36:44:
See: https://core.tcl-lang.org/tk/info/3c6660b6f0bed337

fvogel added on 2018-08-24 20:47:54:
I have attached picture from  http://kozmate.net/z/clt/rb-grid-win7-aero.png  to the ticket for posterity.

Attachments: