Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!spool.mu.edu!think.com!zaphod.mps.ohio-state.edu!ncar!asuvax!mcdphx!hrc!uucs1!rfp From: rfp@uucs1.UUCP (rfp) Newsgroups: comp.windows.x.motif Subject: Re: XmForm help Message-ID: <521@uucs1.UUCP> Date: 28 Jun 91 12:15:00 GMT References: <1991Jun26.234931.12224@unixg.ubc.ca> Reply-To: rfp@uucs1.UUCP (Roger F. Powell) Organization: UUCS inc., Phoenix, Az Lines: 16 In article <1991Jun26.234931.12224@unixg.ubc.ca> lindholm@ucs.ubc.ca (George Lindholm) writes: >I trying to get XmForm to accept a particular layout that I want between >a ScrolledWindow and a PushButton but when I define the layout XmForm complains >and produces a scrambled layout. This is apparently a common error, as I struggled over the same thing about a week ago while learning Motif. Turns out that the widget ID you get from the CreateScrolledWindow convenience function is the inner child -- but what you want to work with is the parent. Just replace viewport[..] with XtParent(viewport[..]) and so forth. -- Roger F. Powell UUCS inc. Phoenix, Az ncar!noao!asuvax!hrc!uucs1!rfp sun!sunburn!gtx!uucs1!rfp