From: Albert Wagner Date: 2001-10-28T22:50:42+09:00 Subject: [ruby-talk:23681] Re: Two Ruby-Tk questions > Question1: How to resize a TkCanvas so that the items inside > know of the change? > > I create a TkCanvas and draw an oval on it. > I use the mouse to "drag" the oval around. > Now I resize (with the mouse) the TkCanvas to let's > say about 30% bigger, but the oval I move around with > the mouse still seems to have the old "bounding box" (?) > of the old TkCanvas. I mean I can still move the oval > only around in the old bounding box. You don't change the size of the canvas when you resize the window. You are dealing with three rectangular regions. (a) the canvas (b) the scrollregion inside the canvas, and (c) the window, inside the scrollregion. > What is the magic command to fix that? >