Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!ATHENA.MIT.EDU!swick
From: swick@ATHENA.MIT.EDU (Ralph R. Swick)
Newsgroups: comp.windows.x
Subject: Re: Ask for the problem of X Toolkit
Message-ID: <8809201235.AA08356@LYRE.MIT.EDU>
Date: 20 Sep 88 12:35:14 GMT
References: <8809200442.AA21392@cosmos.kaist.ac.kr>
Sender: daemon@bloom-beacon.MIT.EDU
Organization: DEC/MIT Project Athena
Lines: 14

> What's wrong with the line 31,32,37, and 38(that don't work) 
> of the program below?

You have used the FormWidget as the parent.  Form ignores the
positions of it's children and moves them to what it considers
an appropriate position, based upon the constraints attached
to each of the children.  In your case, the default values for
the constraints cause each child to be positioned 4 pixels from
the left and top edges of the Form; i.e. both are at (4,4).

If you replace XtNx with XtNhorizDistance and XtNy with
XtNvertDistance you will see something closer to what you
probably expect (though this wouldn't necessarily be the best
way to specify your particular form).