Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!converse From: converse@EXPO.LCS.MIT.EDU Newsgroups: comp.windows.x Subject: Re: placing widgets? Message-ID: <9007202233.AA07241@excess.lcs.mit.edu> Date: 20 Jul 90 22:33:24 GMT References: <8775@ubc-cs.UUCP> Sender: daemon@athena.mit.edu (Mr Background) Organization: X Consortium, MIT Laboratory for Computer Science Lines: 20 > I have a form widget that contains two viewport widgets side-by-side. Below the > viewport I have 3 command widgets that control the viewports. My question is, > how do I position the the first one command widget so that its right edge is > aligned with the right border of the first viewport, the second command > widget so that it is centered in the form, and the third command widget so > that its left side is aligned with the left side of the second viewport? > > I have tried adjusting both XtNx and XtNhorizDistance with no success. It seems to me that you should be able to do this using the Constraint Resources documented in section 6.3.2. You need to use more of these constraint resources, such as fromHoriz, fromVert, left, right, as well as possibly horizDistance. The buttons of xcalc are all placed using constraint resources; it might be helpful to take a look at that. Donna Converse converse@expo.lcs.mit.edu