From: Josef Wolf Date: 2006-09-07T01:50:13+09:00 Subject: Re: How to properly bind context menus to canvas in Ruby/Tk? On Wed, Sep 06, 2006 at 04:00:45AM +0900, Morton Goldberg wrote: > On Sep 5, 2006, at 2:00 PM, Josef Wolf wrote: > >How do you "dismiss" the menu? Whatever I do, I never get the > >second menu. > By left clicking -- either on or off the menu. Don't work here. > Which menu don't you get, the canvas' or the rect's? I always get the canvas menu and never see the rectangle's menu. > >The Tk::Bind manpage mentions that processing of matching callbacks > >can > >be controlled by "return" or calling "Tk->break" inside the callback. > >That is, the rectangle's callback should call Tk->break. But none of > >the involved classes seem to have a break method. And returning > >false/true/nil/1/0 don't have any effect, too. Any ideas? > I believe the Ruby/Tk equivalent is Tk.callback_break, but I don't > think it will help here where we're dealing with an interaction > between a bind and an itembind. I tried Tk.callback_break too, and it didn't work. I just forgot to mention this in my last mail.