From: Ignatz Hafflegab Date: 2011-03-01T12:06:19+09:00 Subject: Re: tk canvas drag items Thank you very much for your reply. I hope that you didn't feel obligated because I dropped your name. It was mentioned because I was grateful for the samples included in the 1.8.6 Ruby installer. The plot.rb sample prompted my ambiguous questions. I wanted to constrain the points to the actual size of the canvas. When plot.rb's window is not maximized, a point can be dragged completely off the canvas. If it is dragged off the east edge of the canvas, it will reappear when the window is maximized. I assume that's because the canvas is set to FILL X. However, if a point is dragged far enough off of the west, north, or south edge when the canvas is not maximized, it is consigned to oblivion, and it will not be see again. What I'm looking for is an example that will confine a selected item within the boundaries fixed-size canvas while the item is dragged. -- Posted via http://www.ruby-forum.com/.