[comp.windows.x] What is XmATTACH_SELF do?

paul@tredysvr.Tredydev.Unisys.COM (Paul Siu) (01/17/91)

The form widget allow you to set up constraits on its children by setting the
resources (inherited by the child, each represent the child's side)
XmNtopAttachment, XmNbottomAttachment, XmNleftAttachment, and
XmNrightAttachment.

One of the value you can set the above resource to is XmATTACH_SELF.  I have
what this setting do, and cannot seem to think up a set of rules governing
its behavior.  It seems to act like XmATTACH_FORM most of the time.  The
reference's manual's explanation is vague "Attach bottom side (this is for
XmNbottomAttachment) of the child to a position that is proportional to the
current y value of the bottom of the child divided by the height of the Form.
This position is determined by the XmNBottomPosition and XmfractionBase
resources (how is it calculated?).  XmNbottomPosition is set to a value
proportional to the current y value of the bottom of the child divided by the
height of the form (does this mean I can't set XmNbottomPosition?)."

Any explanation or insight is welcome.

Paul Siu
paul@tredysvr.tredydev.unisys.com