From: Kero van Gelder Date: 2001-10-27T06:37:56+09:00 Subject: [ruby-talk:23540] Re: Two Ruby-Tk questions > I'm playing with Ruby-Tk and ran > into the following 2 questions. > Any help would be highly appreciated. > > 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. You can scale() the canvas. > Question2: I need to enter data in an Excel-like input. > As I use Linux I can't do the shortcut of using Excel directly via win32. > Let's say 2 lines of data-fields, where I do not know > the exact number beforehand, let's say 5000. > In Apollo I would use an array of stringgrid or so. > Is there an easy way to do that in RubyTk? No idea what you mean here; don't run Excel or M$, even. +--- 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 ---+