Menu

#177 Win unpost and Menubutton support

open
6
2007-11-10
2004-09-06
No

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.

Discussion

  • Peter Spjuth

    Peter Spjuth - 2004-09-06
     
  • Pat Thoyts

    Pat Thoyts - 2005-04-06

    patch updated for tk 8.5

     
  • Pat Thoyts

    Pat Thoyts - 2005-04-06

    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.

     
  • Peter Spjuth

    Peter Spjuth - 2005-04-11

    updated patch for head

     
  • Peter Spjuth

    Peter Spjuth - 2005-04-11

    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".

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2007-10-31
    • priority: 5 --> 6
    • assigned_to: hobbs --> pspjuth
     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2007-10-31

    Logged In: YES
    user_id=72656
    Originator: NO

    Any hope on updating this for 8.5?

     
  • Peter Spjuth

    Peter Spjuth - 2007-11-01

    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.

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2007-11-01

    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.

     
  • Peter Spjuth

    Peter Spjuth - 2007-11-10

    Updated to current head. Untested.

     
  • Peter Spjuth

    Peter Spjuth - 2007-11-10
    • assigned_to: pspjuth --> hobbs
     
  • Peter Spjuth

    Peter Spjuth - 2007-11-10

    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

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.