From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-05-07T01:27:59+09:00 Subject: Re: [fxruby] create children On Tue, 06 May 2003 12:01:52 +0000, Lyle Johnson wrote: > Simon Strandgaard wrote: > >> Is there some way to automaticaly create all children? > > When you call create() on an FXComposite widget (such as FXTabBook) it > should recursively create() on all of its as-yet-uncreated child > widgets, i.e. > > # Construct some new objects > FXTabItem.new(@tabbook, "Dummy", nil) > FXVerticalFrame.new(@tabbook, FRAME_THICK|FRAME_RAISED) > > # Calls create on both the new tab item and the new vertical frame > @tabbook.create > > There is no harm in calling create() on a widget more than once. Thanks :-) If anyone wants to see how I did it see line 29-46: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/sysinstall2/project_sysinstall2/frontend_fox/main_window.rb?annotate=1.4 see line 1-3: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/sysinstall2/project_sysinstall2/frontend_fox/details.rb?annotate=1.2