Skip to content
Tcl Source Code Artifact [61b9743332]
Login

Artifact [61b9743332]

Artifact 61b97433325b0abe97487ca954220dad1b58da24:

Ticket change [61b9743332] - New ticket [872292ffffffffff|872292ffff] <i>Missing event when posting cascade menus</i>. by s_a_white on 2004-01-07 11:18:19.
D 2004-01-07T11:18:19
J assignee msofer
J cmimetype text/plain
J comment Here\sis\san\sexample\sof\sthe\sproblem\sfound\sunder\sLinux:\n\nbutton\s.b\npack\s.b\n.b\sconfigure\s-activebackground\sred\nmenu\s.m\nmenu\s.m.c\n.m\sadd\scascade\s-menu\s".m.c"\s-label\s"cascade"\n.b\sconfigure\s-command\s{tk_popup\s.m\s[winfo\srootx\s.b]\n[expr\s[winfo\srooty\s.b]\s+\s[winfo\sheight\s.b]];\s.m\nactivate\s1;\s.m\spostcascade\s1;\stk_menuSetFocus\s.m}\n\nUse\sthe\smouse\sand\sclick\son\sthe\sbutton\sand\snow\smove\sthe\nmouse\saway.\s\sYou\swill\ssee\sthat\sthe\sbuttons\sstate\sis\snot\nrestored\sto\snormal\sand\sis\sleft\sas\sactive.\s\sWithout\sthe\npostcascade\sas\ssoon\sas\syou\sclick\son\sthe\sbutton\sa\n<Leave>\sevent\sis\sgenerated\scausing\sthe\sbutton\sstate\sto\nbe\srestored\sto\snormal\salthough\sthe\smouse\sis\sstill\nwithin\sthe\swidget.\s\sBoth\sof\sthese\sbehaviours\sappear\sto\nnot\sbe\scorrect.\n\nI\sam\sunable\sto\stest\sthe\ssame\sconditions\susing\nmenubutton\sas\sI\scan't\ssee\sa\sway\sto\spost\sthe\scascade\nwith\sthe\ssame\sevent\sexecution.\s\sHowever\smenubutton\sis\nslightly\sdifferent\sin\sthat\sthe\s<Leave>\sevent\sis\snot\ngenerated\suntil\sthe\smouse\smoves\soutside\sthe\swidget.
J foundin obsolete:\s8.4.5
J priority 5\sMedium
J resolution None
J status Open
J submitter s_a_white
J subsystem 10.\sObjects
J title Missing\sevent\swhen\sposting\scascade\smenus
J type Bug
K 872292ffffffffffffffffffffffffffffffffff
U s_a_white
Z 5dbd6804963979cf2ae2c0697198afa4