Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac,att!pacbell.com!ucsd!ucbvax!alfalfa.com!nazgul From: nazgul@alfalfa.com (Kee Hinckley) Newsgroups: comp.windows.x.motif Subject: Re: Most efficient way of managing children Message-ID: <910318174606.6843@alphalpha> Date: 18 Mar 91 22:46:06 GMT References: <404@bpa44.sbi.com> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 22 > I'd like to know what is the most efficient (in time) way of managing > a tree of widgets. My guess is that if I want to create, say, a motif > bulletin board widget with 7 text field children, if I manage the 7 > children (with XtManageChildren), then manage the bulletin board, and > then realize the top level, this would be most efficient. Is this > true? Apparently it used to be faster to do the XtManageChildren rather than create managed, however it doesn't matter so much anymore. So long as the parent widget is not managed or realized there is no geometry negotiation (which is what eats up the time) going on as you add new children. The parent only gets notified of new children just prior to being realized. So as long as you manage the toplevel last you should be fine. The Asente/Swick book covers this quite well btw. Alfalfa Software, Inc. | Poste: The EMail for Unix nazgul@alfalfa.com | Send Anything... Anywhere 617/646-7703 (voice/fax) | info@alfalfa.com I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.