Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!agate!ucbvax!osf.org!dbrooks From: dbrooks@osf.org Newsgroups: comp.windows.x.motif Subject: Re: XmForm, XtWindow Message-ID: <9105241541.AA03129@osf.osf.org> Date: 24 May 91 15:41:01 GMT Article-I.D.: osf.9105241541.AA03129 Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 26 > In my manual page entry for the XmForm widget, it says that XmNrightWidget > (and left, top, and bottom) should be a Window, not a Widget. The manuals are, unfortunately, wrong here. It should say "Widget", as you expected. > XtWindow > just returns a zero. Is this because I've managed those widgets but haven't > realized any of them yet? Either that, or the widget is a gadget. >I have been setting my XmNrightAttachment to XmATTACH_WIDGET and the others >are set to XmATTACH_FORM. The other widget in the form does the same thing >but specifies XmNleftWidget and XmNleftAttachment (and the appropriate >widget, or should I say, window). That is a circular definition. You should only do one of those. As a rule of thumb, if you want widget L to resize when you resize the form, but not widget R, attach the right side of L to R, and leave R's left side unattached. If you want them to split the space between them, attach the inner side of both to 50% across. And so on. David Brooks Systems Engineering Open Software Foundation