Tk Source Code

Check-in [a33031d2]
Login

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

Overview
Comment:Add a widget demo for popup (context) menus posted with tk_popup, with menus of different sizes.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | menu-post-under-pointer
Files: files | file ages | folders
SHA3-256: a33031d2f864423b992fbcb2521f56334a36d685cb078d0f314b462b7452f504
User & Date: serhiy.storchaka 2026-09-30 08:37:38.330
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
09:35
Scroll menus that are taller than the screen on X11 (ticket [4e7fbe8b4a]).

The menu is limited to the screen height and gets scroll arrows at the top and bottom. Pointing at an arrow scrolls the menu continuously, and the mouse wheel scrolls it too. Activating an entry scrolls it into view. Add the "yview" menu subcommand. check-in: 3351532e user: serhiy.storchaka tags: menu-scroll

08:37
Add a widget demo for popup (context) menus posted with tk_popup, with menus of different sizes. closed check-in: a33031d2 user: serhiy.storchaka tags: menu-post-under-pointer
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
Changes
Unified Diff Side-by-Side Diff Patch
Added library/demos/popup.tcl.
Changes to library/demos/widget.