Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!gatech!hubcap!ncrcae!ncr-sd!hp-sdd!hplabs!hpfcdc!hpfclp!diamant From: diamant@hpfclp.SDE.HP.COM (John Diamant) Newsgroups: comp.windows.x Subject: Re: Adding widgets to realized parents Message-ID: <9740082@hpfclp.SDE.HP.COM> Date: 26 Feb 89 02:57:28 GMT References: <17668@genrad.UUCP> Organization: HP SESD, Fort Collins, CO Lines: 22 > Problem: When I add another widget (e.g a XwpushbuttonWidgetClass) > to a already realized parent using XtCreateWidget the change in > geometry needed does not bubble up to the top level shell. > > How do I get around this problem?? You need to set the allowShellResize resource on the toplevel shell widget to true. Presumably, the reason for this resource is to avoid excess geometry negotiation with a window manager and possibly surprising results of the application changing it's size once the window has already been created. That resource won't affect user-requested changes in size (via the window manager), but will affect the program's ability to change it's toplevel window once the window has been realized. For efficiency reasons, it's best to do as little geometry negotiation as possible after the realize (move as much as possible before the realize), but there are times when this is impractical or impossible. John Diamant Software Engineering Systems Division Hewlett-Packard Co. ARPA Internet: diamant@hpfclp.sde.hp.com Fort Collins, CO UUCP: {hplabs,hpfcla}!hpfclp!diamant