From: Armin Roehrl Date: 2001-11-11T05:40:23+09:00 Subject: [ruby-talk:24842] Re: Ruby-Tk; feature/bug/misunderstanding? mouse-location during when a key is pressed in the presence of TkMenubutton At http://approximity.com/ruby/rubytk.html I started to collect my questions & your answers :-). I will extend this in the next few days so that other people can learn from my battle with Ruby-Tk. Bye, Armin On Saturday 10 November 2001 12:15, you wrote: > > Hi, > > > > I think the following is best explained with code. > > Can s.b. reproduce that error? > > Yup. > > You get the (x, y) of the mouse w.r.t. the root window, since that is > what you bind to. You can bind to the canvas to get (x, y) w.r.t. to > the canvas. You may want to add canvas.focus() to your code. > > I never found a way to determine the size of a widget (i.e. you can > set it with width(w), but bot obtain it). > > Bye, > Kero. > > +--- Kero ------------------------------ kero@chello.nl ---+ > > | Don't split your mentality without thinking twice | > | Proud like a God -- Guano Apes | > > +--- M38c ------- http://members.chello.nl/~k.vangelder ---+ -- Armin. ----------------------------------------------- Armin Roehrl, http://www.approximity.com "The best way to predict the future is to invent it." --Alan Kay