Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 61b97433325b0abe97487ca954220dad1b58da24
Ticket: 872292ffffffffffffffffffffffffffffffffff
Missing event when posting cascade menus
User & Date: s_a_white on 2004-01-07 11:18:19
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Here is an example of the problem found under Linux:
    
    button .b
    pack .b
    .b configure -activebackground red
    menu .m
    menu .m.c
    .m add cascade -menu ".m.c" -label "cascade"
    .b configure -command {tk_popup .m [winfo rootx .b]
    [expr [winfo rooty .b] + [winfo height .b]]; .m
    activate 1; .m postcascade 1; tk_menuSetFocus .m}
    
    Use the mouse and click on the button and now move the
    mouse away.  You will see that the buttons state is not
    restored to normal and is left as active.  Without the
    postcascade as soon as you click on the button a
    <Leave> event is generated causing the button state to
    be restored to normal although the mouse is still
    within the widget.  Both of these behaviours appear to
    not be correct.
    
    I am unable to test the same conditions using
    menubutton as I can't see a way to post the cascade
    with the same event execution.  However menubutton is
    slightly different in that the <Leave> event is not
    generated until the mouse moves outside the widget.
    
  4. foundin changed to: "obsolete: 8.4.5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "s_a_white"
  9. subsystem changed to: "10. Objects"
  10. title changed to: "Missing event when posting cascade menus"
  11. type changed to: "Bug"