Re: [Fxruby-users] Attaching a Canvas to a ScrollArea
Status: Inactive
Brought to you by:
lyle
From: Claus S. <Doc...@gm...> - 2004-05-11 01:21:55
|
Thanks for the help! I figured the problem was along those lines, but hadn't been successful as of then. Your code helped a lot, (though the canvas had ended up being smaller than what the table needed, its size depending on the number of rows and columns... I got that one fixed though :) ). Now to phase 2 - reimplement connect(...), and phase 3 - profit! On Mon, 10 May 2004 19:33:34 -0500, Lyle Johnson <ly...@kn...> wrote: > > > On May 5, 2004, at 11:22 AM, Claus Spitzer wrote: > > > However, I want to put the canvas in a FXScrollArea because eventually > > it will be larger than the screen... and that's what I'm having > > trouble with. > > Please see the question "Why Can't I Place a Fixed-Size FXCanvas inside > an FXScrollwindow?" near the bottom of this page: > > http://www.fox-toolkit.net/cgi-bin/wiki.pl?FAQ > > For your example program, I replaced these lines: > > @scroller = FXScrollArea.new(...) > @canvas = FXCanvas.new( @scroller, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y > ) > > with these: > > @scroller = FXScrollWindow.new( self, LAYOUT_FILL_X|LAYOUT_FILL_Y ) > canvasFrame = FXVerticalFrame.new( @scroller, > LAYOUT_FILL_X|LAYOUT_FILL_Y ) > @canvas = FXCanvas.new( canvasFrame, nil, 0, > LAYOUT_FIX_WIDTH|LAYOUT_FIX_HEIGHT, 0, 0, 600, 400 ) > > and I get what looks reasonable. It draws a pretty picture, anyways ;) > > Hope this helps, > > Lyle > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver > higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users > |