The push buttons
Moving to the bottom left corner of the window part, we'll set the attachments for the push buttons. This time, we'll attach their bottom and left edges to the window part, leaving the top and right edges unattached to allow room for a change in font size or a change in text due to translation. For Push Button1, these are the settings:
Edge
Attachment
Top
Attachment type: XmATTACHNONE
Bottom
Attachment type: XmATTACHFORM
Offset: 10
Left
Attachment type: XmATTACHFORM
Offset: 10
Right
Attachment type: XmATTACHNONE
Notice that you cannot set the top edge to XmATTACHNONE until you have changed the value for the bottom edge.
Attach Push Button2 so that it is positioned as follows:
Edge
Attachment
Top
Attachment type: XmATTACHNONE
Bottom
Attachment type: XmATTACHOPPOSITEWIDGET
Offset: 0
Attached parts: Push Button1
Left
Attachment type: XmATTACHWIDGET
Offset: 20
Attached parts: Push Button1
Right
Attachment type: XmATTACHNONE
Notice the overall pattern. As you work from the top left in toward the center, you generally leave the bottom and right edges unattached. As you work from the bottom left in toward the center, you generally leave the top and right edges unattached. As parts grow or shrink, space is taken away from or added to the center of the window part.
Last modified date: 01/29/2015