From: Lyle Johnson Date: 2004-01-24T13:50:06+09:00 Subject: Re: FXRuby: adding child widgets after #run has started On Jan 23, 2004, at 12:38 PM, Yuri Leikind wrote: > Yes, it does work. In some cases. But in other cases it doesn't. > Please take a look at the example: > We have 2 FXScrollWindow instances here, one of which is built before > run , another - after. > So that another FXScrollWindow is never seen. I don't see why. The problem is that merely adding an FXScrollWindow to the FXGroupBox during that second call to build() doesn't mark the layout of the group box as "dirty". That is to say, FOX doesn't assume that adding the scroll window changed the size of the parent group box (grbox2), and so that widget's layout doesn't get recalculated as a result. In this case, you need to explicitly mark the group box layout as dirty by calling its recalc() method. Try adding the following line at the end of build(), after the call to FXScrollWindow#create: scrollarea.recalc and see if you get the result you're after. Hope this helps, Lyle