Tk Source Code

Check-in [73a6d046]
Login

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

Overview
Comment:TIP 360: Make Tk menu activation follow mouse movement.

This patch makes Tk menus on unix follow mouse motion in the same way Windows and GNOME menus follow the mouse. Once a menubar dropdown has been activated, moving the mouse to another menubar button or cascade item will activate the dropdown without needing another click.

The previous behaviour can be restored by setting the *Menu.clickToFocus option true or by calling 'tk::classic::restore menu' if this is preferred.

Signed-off-by: Pat Thoyts <[email protected]>

Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 73a6d046e7ce5739a53bea110c60f083a94016de
User & Date: patthoyts 2010-01-09 00:43:46.000
References
2026-09-24
18:52 • Ticket [1408279f] (sub)menus do not automatically open when mouse over status still Open with 4 other changes artifact: 7cd5f62f user: serhiy.storchaka
Context
2010-01-09
00:48
TIP 360: Remove special handling of .help menu on X11.

Tk is the only toolkit to continue the Motif scheme of anchoring a Help menu to the extreme right of the menubar. This patch disables the special handling of the .help menu so that the help menu will be grouped with the other menu items as is common with other toolkits.

The old behaviour can be restored by setting the option *Menu.useMotifHelp to true or by calling 'tk::classic::restore menu'.

Signed-off-by: Pat Thoyts <[email protected]> check-in: 6821c287 user: patthoyts tags: trunk

00:43
TIP 360: Make Tk menu activation follow mouse movement.

This patch makes Tk menus on unix follow mouse motion in the same way Windows and GNOME menus follow the mouse. Once a menubar dropdown has been activated, moving the mouse to another menubar button or cascade item will activate the dropdown without needing another click.

The previous behaviour can be restored by setting the *Menu.clickToFocus option true or by calling 'tk::classic::restore menu' if this is preferred.

Signed-off-by: Pat Thoyts <[email protected]> check-in: 73a6d046 user: patthoyts tags: trunk

2010-01-08
10:31
Minor formatting fix check-in: 12e5b26a user: dkf tags: trunk
Changes
Unified Diff Side-by-Side Diff Patch
Changes to ChangeLog.
Changes to library/menu.tcl.
Changes to library/obsolete.tcl.