*leftOffset: 10
*rightOffset: 10
The XmNrubberPositioning resource specifies the default attachments for widgets in the Form. The default
value of False indicates that the top and left edges are attached to the form by default. If
XmNrubberPositioning is set to True, the top and left attachments are set to XmATTACH_POSITION by
default. If the XmNtopAttachment or XmN-left-Attachment resource is explicitly set for a widget, then the
default attachment has no effect.
The XmNresizable resource is another constraint resource that can be set on the children of a Form widget. This
resource indicates whether or not the Form tries to grant resize requests from the child.
9.4.5 Nested Forms
Some widget layouts are difficult to create using a single Form widget. Since a manager widget can contain other
managers, it is often possible to generate the desired layout by using a Form within a Form. One common problem is
that there are no Form attachments available to align two widgets horizontally if they have different heights. We need
a middle attachment resource, but one doesn't exist. For example, if you have a series of Labels and Text widgets that
you want to pair off and stack vertically, it would be nice to align each pair of widgets at their midsections.
To solve this problem, we can place each Label−Text widget pair in a separate Form. If the top and bottom edges of
the widgets are attached to the Form, the widgets are stretched to satisfy the constraints, which means that they are
aligned horizontally. ...