Label1
Let's start with Label1, because it is one of the outermost parts. We'll attach the label to its parent's top and left edges, but leave the bottom and right edges unattached. Use these values for the framingSpec property:
Edge
Attachment
Top
Attachment type: XmATTACHFORM
Offset: 10
Bottom
Attachment type: XmATTACHNONE
Left
Attachment type: XmATTACHFORM
Offset: 10
Right
Attachment type: XmATTACHNONE
Leaving the right and bottom edges unattached allows the label to resize itself correctly if the font size changes or if the text changes due to translation, provided the part's recomputeSize property is set to true, which it is by default.
Last modified date: 01/29/2015