Path: utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!bloom-beacon!EXPO.LCS.MIT.EDU!converse From: converse@EXPO.LCS.MIT.EDU (Donna Converse) Newsgroups: comp.windows.x Subject: Re: Form Widget question Message-ID: <8907141520.AA05316@expo.lcs.mit.edu> Date: 14 Jul 89 15:20:04 GMT References: <8907132335.AA08429@ATHENA.MIT.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: X Consortium, MIT Laboratory for Computer Science Lines: 26 > I am using X11R3 and have a Form Widget with (let's say) two buttons in it. > How can I stick a third button between the first two? The following resources presuppose the order of widget creation to be leftButton, middleButton, rightButton. Demo.form.middleButton.fromHoriz: leftButton Demo.form.rightButton.fromHoriz: middleButton At the time that the right button is created, the Athena form widget converts middleButton to a widget ID. So, the middle button must be created before the right button. If the order of widget creation is leftButton, rightButton, middleButton, write the resources so that the placement of buttons depend only on existing buttons. Demo.form.middleButton.fromHoriz: leftButton Demo.form.rightButton.fromHoriz: leftButton Demo.form.rightButton.horizDistance: 60 Not very elegant, is it? Donna Converse converse@expo.lcs.mit.edu