Tk Source Code

Check-in [ad39c644]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [11bd4a03a0]: the Windows menu bar ignored the colors and fonts of the menu. The items of a menu bar with non-default colors or fonts are now drawn by Tk (owner-drawn items), using only documented Windows API. The menu bar keeps the standard height.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | win-menubar-colors-ownerdraw
Files: files | file ages | folders
SHA3-256: ad39c644323e320067ff9b874a884b85b9b91158c55f78ce940fa644347bed80
User & Date: serhiy.storchaka 2026-09-28 11:20:39.167
Context
2026-09-28
11:39
The default font of the menu is the system menu font specified by its name and size, not TkMenuFont: do not draw a menu bar with the default font by Tk. closed check-in: 80663c87 user: serhiy.storchaka tags: win-menubar-colors-ownerdraw
11:20
Fix [11bd4a03a0]: the Windows menu bar ignored the colors and fonts of the menu. The items of a menu bar with non-default colors or fonts are now drawn by Tk (owner-drawn items), using only documented Windows API. The menu bar keeps the standard height. check-in: ad39c644 user: serhiy.storchaka tags: win-menubar-colors-ownerdraw
10:02
Fix for [d3b9644729]: X11 <KeyRelease> broken. check-in: cd8ac5d1 user: csaba tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to tests/winMenu.test.
Changes to win/tkWinInt.h.
Changes to win/tkWinMenu.c.
Changes to win/tkWinWm.c.