[fxruby-users] Dynamic resize of drawing canvas and FXImage

Lyle Johnson lyle at lylejohnson.name
Fri Feb 8 10:28:39 EST 2008

On Feb 8, 2008, at 6:58 AM, Ranieri Teixeira wrote:

> How can I use the drawing canvas and its off-screen image buffer, say
> FXImage, to dynamically resize or have its width and height attributes
> changed in reply to user interaction with the main window  
> (FXMainWindow)?
> It seems that whem I put initial values to W and H of the canvas or  
> FXImage,
> they remain with its initial values no matter what I do whem  
> resizing the
> main window.

If you want the image to be as large as the canvas, you need to call  
resize() on the image whenever the canvas size changes.

More information about the fxruby-users mailing list