#812 Unmap,Deactivate,FocusOut,etc bindings don\'t work on NT for

obsolete: 8.0.4
closed
5
2006-04-15
2000-11-01
No

OriginalBugID: 1368 Bug
Version: 8.0.4
SubmitDate: '1999-03-02'
LastModified: '2000-04-03'
Severity: LOW
Status: Assigned
Submitter: pat
ChangedBy: ericm
OS: Windows NT
OSVersion: 4.0
Machine: X86

Name:
harry halladay

ReproducibleScript:
wm de .
raise .
set b [button .b -text menuhere -command exit]
pack $b
set menu [menu $b.m -tearoff 0]
$menu add command -label "Line 0"
$menu add separator
$menu add command -label "Line 1" -command "puts line1"
$menu add command -label "Line 2" -command "puts line2"
$menu add command -label "Line 3" -command "puts line3"
bind $b <ButtonRelease-3> "tk_popup $menu %X %Y 0"
bind $menu <Unmap> "puts \"got unmap\""
bind . <Deactivate> "puts \"got Deactivate\""

ObservedBehavior:
run the script
pop up the menu with the right mouse button
click on the NT desktop with the left button. the menu is unmapped, but the Unmap binding is not fired. This works properly on HPUX.

DesiredBehavior:
The menu should pop down and fire the Unmap binding

This is verified on 8.3.0 and NT. You might see if you can workaround this with a <<MenuSelect>> binding on the menu (which will tell you when an item in the menu has been selected).

- eric

-- 04/03/2000 ericm

Discussion

  • Donal K. Fellows

    The problem is probably caused by the fact that Windows uses system menus and not windows under the control of Tk, and as such will be tough to fix.

     
  • Donal K. Fellows

    • labels: 104348 --> 104342
     
  • Don Porter

    Don Porter - 2001-03-24
    • labels: 104342 --> 13. Win Menus
     
  • Don Porter

    Don Porter - 2002-07-05
    • summary: Unmap,Deactivate,FocusOut,etc bindings don't work on NT for tk popup menus --> Unmap,Deactivate,FocusOut,etc bindings don't work on NT for
    • assigned_to: nobody --> tmh
     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2006-03-31
    • summary: Unmap,Deactivate,FocusOut,etc bindings don't work on NT for --> Unmap,Deactivate,FocusOut,etc bindings don\'t work on NT for
    • status: open --> pending
     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).