Path: utzoo!attcan!uunet!husc6!bloom-beacon!MEDIA-LAB.MEDIA.MIT.EDU!smanandh From: smanandh@MEDIA-LAB.MEDIA.MIT.EDU (Sanjay Manandhar) Newsgroups: comp.windows.x Subject: XtNx, XtNy for widgets Message-ID: <8901080129.AA01683@media-lab.media.mit.edu> Date: 8 Jan 89 01:29:17 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 21 Here is a novice's question: Aren't XtNx, XtNy used as offset for a widget from the top-left corner of its parent widget? I am trying to put a form widget(which has other widgets inside it) in the middle of a viewport widget. I am providing the coordinates of the offsets by doing: ........ ....... ..... ........ ....... ..... XtSetArg( arg[3], XtNx, 200); XtSetArg( arg[4], XtNy, 100); ....... ........ ..... ....... ........ ..... Why do all the widgets gravitate towards the top left corner? Thanx. sanjay manandhar