From: MENON Jean-Francois Date: 2002-08-27T21:54:22+09:00 Subject: Re: Tk-events propagation, Button on Canvas Mauro Cicio wrote: > > Hi Tk Gurus! > hello, I am not a Tk Guru :-> , but ... > Task: I am trying to have a button on a canvas and to drag the button > around. > > Solution 1: One way is to "draw" the button with a Rectangl Item + a label. > Problem: I don't understand how to put the label on the top of the Rectangle > Item (is ti possible???). > you can choose the stacking order of the items wih the 'raise' method. then use bind ('Motion', ...) on the rectangle to move it around. > Solution 2: Another way is to use a Window Itime with a Button on it. > Problem: It seems that then the Button catches all my mouse actions on it, > without informing the Canvas. If you need the canvas to receive events, solution 1 seems better. jf