Path: utzoo!attcan!uunet!husc6!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: precisely placing a child within a form widget Message-ID: <8904181824.AA19263@expo.lcs.mit.edu> Date: 18 Apr 89 18:24:17 GMT References: <2412@lll-lcc.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 19 > In my code, I state the exact size I would like the viewport widget to > be, and where the viewport widget should be placed relative to a > scrollbar widget which is also within the same form widget. To do > this I use XtNheight, XtNwidth, XtNfromHoriz and XtNhorizDistance. > Well, the viewport widget gets drawn starting in the proper place, but > it extends clear to the right edge of the form widget, rather than > limiting itself to the width I stated in XtNwidth. > All right experts, what's the real solution?? Try setting the left and right edges of the Viewport to XtChainLeft and the top and bottom edges to XtChainTop. This should keep it from resizing. Chris D. Peterson MIT X Consortium