Tk Source Code

View Ticket
Login
Ticket UUID: 52553608646b7669b84130bfed66a289838630f7
Title: Wrong appearance of the ttk::menubutton indicator of the "xpnative" theme
Type: Bug Version: all
Submitter: nemethi Created on: 2025-01-22 20:06:54
Subsystem: 88. Themed Tk Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2025-01-28 19:13:44
Resolution: Fixed Closed By: nemethi
    Closed on: 2025-01-28 19:13:44
Description:

When running the attached script xpnativeBug.tcl on Windows, the ttk::menubutton indicator of the xpnative theme exhibits the artifact shown in the screenshots contained in the left half of the pictures menubtn_100.png and menubtn_150.png.  The right screenshots show the expected appearance, obtained after fixing the bug that causes the issue.  The screenshots were taken on a display with 100% and 150% scaling, respectively, and magnified by a factor of 2.

The wrong appearance of the ttk::menubutton indicator is due to the use of the element spec GenericElementSpec for the Menubutton.dropdown element.  The fix consists in using the spec GenericSizedElementSpec and the flags  (SM_CXVSCROLL << 8) | SM_CYVSCROLL.

User Comments: nemethi (claiming to be Csaba Nemethi) added on 2025-01-28 19:13:44:

Fixed in all 3 branches via [f65e7f60], [60b8f4c5], and [64bfe6da]. Closing the ticket.


oehhar added on 2025-01-23 10:19:44:

Thanks, Csaba ! I can reproduce and the fix looks good and effective.

Thanks, Harald


nemethi (claiming to be Csaba Nemethi) added on 2025-01-22 20:32:07:

The fix is in the branch "bug-5255360864".


Attachments: