From: "Paul E.C. Melis" Date: 2002-08-01T05:59:58+09:00 Subject: Re: FXRuby: how do you capture a canvas resize? "Lyle Johnson" wrote in message news:3D484A97.9020804@users.sourceforge.net... > Paul E.C. Melis wrote: > > > Almost perfect, except that after starting up (before doing any resizing > > myself) the size reported is 1x1 pixel. Any way to get the initial size? > > If I add the lines I showed in my previous e-mail (i.e. catching the > SEL_CONFIGURE message from the FXCanvas widget) and then run > scribble.rb, it reports the correct initial size; it prints exactly one > message to the console ("New canvas size: 667 x 550 pixels"). I am > currently testing this under Linux and so I guess it's possible that the > behavior is inconsistent under Windows. Did the same here on windows, it looks like it is a windows-only quirk: I get four times that line, saying the canvas is 1x1 pixel... Paul