|
2004-01-09
| ||
| 06:00 | • Closed ticket [872292ffff]: Missing event when posting cascade menus plus 7 ... artifact: 8c05917f1d user: msofer | |
|
2004-01-07
| ||
| 11:18 | • New ticket [872292ffff]. artifact: 61b9743332 user: s_a_white | |
Missing event when posting cascade menus
Closed / Invalid872292ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-01-07 11:18:19
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.
msoferplain2004-01-09 06:00:34
Logged In: YES user_id=148712 This is a Tk (!= Tcl) bug, please submit to http://sourceforge.net/projects/tktoolkit/
Log in (anonymous is fine) to add a comment.