Tk Source Code

Check-in [c8129022]
Login

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

Overview
Comment:Fix [470331], [680660], [1596662fff], [f9d316a5e0]: a menu posted over its menubutton or menubar entry invoked the entry under the pointer on the release of the click which posted it. Post the menu of a menubar entry or a menubutton above it if it does not fit below, or aside of the pointer if it fits neither below nor above. Ignore the release of the click which posted a menu if the pointer is over another menu and has not moved.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | menu-post-under-pointer
Files: files | file ages | folders
SHA3-256: c81290221a72b7ecf9e6b8a509ce1199b1e5c03a2231bcba1ecf4095226a76ca
User & Date: serhiy.storchaka 2026-09-29 20:40:04.858
Context
2026-09-30
18:10
Fix for [470331ffff]: Displaced menus do not stay open; [680660ffff]: Menu items accidentally selected; [1596662fff]: Menu behaviour at screen bottom; [f9d316a5e0]: Linux menu problem if menu near the bottom of screen. check-in: 5c47ae3e user: csaba tags: core-9-0-branch
08:31
tk_popup posts the menu to the left of and/or above the point if it does not fit to the right of or below it, and ignores the release of the click which popped up the menu under the pointer. The entry under the pointer is not activated until the pointer moves after the click which posted the menu under the pointer. check-in: 8584be81 user: serhiy.storchaka tags: menu-post-under-pointer
2026-09-29
20:40
Fix [470331], [680660], [1596662fff], [f9d316a5e0]: a menu posted over its menubutton or menubar entry invoked the entry under the pointer on the release of the click which posted it. Post the menu of a menubar entry or a menubutton above it if it does not fit below, or aside of the pointer if it fits neither below nor above. Ignore the release of the click which posted a menu if the pointer is over another menu and has not moved. check-in: c8129022 user: serhiy.storchaka tags: menu-post-under-pointer
19:29
[32f2e1] MS-Win: photo -gamma and -palette are ignored check-in: 05a0704a user: oehhar tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkMenuDraw.c.
Changes to library/menu.tcl.
Changes to library/ttk/menubutton.tcl.
Changes to tests/menu.test.
Changes to tests/menuDraw.test.
Changes to tests/menubut.test.