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
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "obsolete: 8.4.5"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "s_a_white"
- subsystem changed to: "10. Objects"
- title changed to: "Missing event when posting cascade menus"
- type changed to: "Bug"