This is a patch to provide some infrastructure for
improving
menu handling on Windows, in particular making Menubuttons
work better.
Nothing that uses the support is included in this patch
so nothing user visible should be affected by the patch.
By applying just this part I hope to get confirmation that
these changes does not affect anything.
The main points are:
1. Move bindings definitions to menu.tcl
2. Implement "unpost" as well as it can be.
3. Provide virtual events on Menubutton's menu to help it
do the right thing.
4. Make tk::WinMenu a general command for support
functions. More subcommands are foreseen there.
patch updated for tk 8.5
Logged In: YES
user_id=202636
I've tried this against 8.5 head. It seems ok generally -
the test suite all passes. Also unposting works now eg:
after 1000 {.m unpost}; .m post 100 100
actually unposts the menu after a second.
However, menubutton behaviour is changed. The menu is now
only displayed while Button-1 is down.
updated patch for head
Logged In: YES
user_id=98900
Added an updated patch.
Fixes one crash, and has a quick-and-dirty
fix for the button-up problem.
Still, library/menu.tcl needs a big overhaul but that
is step 2 of this "project".
Logged In: YES
user_id=72656
Originator: NO
Any hope on updating this for 8.5?
Logged In: YES
user_id=98900
Originator: YES
I currently do not have a working development environment
for Windows. I could update the patch to HEAD but not
test it, if that is enough.
Logged In: YES
user_id=72656
Originator: NO
Updated to patch into the latest code as diff -u would be easier for me to test.
Updated to current head. Untested.
Logged In: YES
user_id=98900
Originator: YES
Attached an updated patch.
It is untested, so I hope everything survived the merge.
File Added: winmenu.diff