From: Jason Persampieri Date: 2002-12-12T05:46:44+09:00 Subject: Re: FXRuby : Setting Default Height/Width in an FXList Woot! This completely fixes my problem. I KNEW a method like that had to exist, but it wasn't documented in the 'class index' on the official FOX site. Is there a more complete FOX/FXRuby reference around (besides trudging through the code)? Jason --- Lyle Johnson wrote: > Jason Persampieri wrote: > > > ok... try this... it shows what I'm talking about. > > > When the FXText's are deleted, the scrollbar > doesn't > > change. > > I'm assuming you have not yet read one of my > previous responses in this > thread about using FXWindow#removeChild instead of > FXWindow#destroy. > (Unfortunately it looks to be too recent to have > been archived on > ruby-talk so I can't post a link to it ;) > > In any event, change your onButton() method to look > like this: > > def onButton(sender, sel, ptr) > (@frame.numChildren - 1).downto(0) do > |childNum| > > @frame.removeChild(@frame.childAtIndex(childNum)) > end > end > > and you should get the expected result. To find out > why, wait for that > response to show up on your news server (or to get > gated to the mailing > list). > >