LINKING CONTROL ANCHOR POINTS TO A FRAME

Control Anchor Points And Frame Relationship

This image shows the associations between the anchor points of all the controls on the frame and the frame itself.
This image shows the associations between the anchor points of the TEXTBOX control and the frame.

setting TEXTBOX control anchor point properties

This image shows the associations between the anchor points of the "OK" BUTTON control and the frame.

setting the "OK" BUTTON control anchor point properties

This image shows the associations between the anchor points of the "DISMISS" BUTTON control and the frame.

setting the "DISMISS" BUTTON control anchor point properties

The following example shows how the anchor points of a TEXTBOX are linked to the anchor points of the FRAME that holds it so that when the FRAME is resized, the TEXTBOX streches in width but does not grow taller (relative to LEFT, RIGHT and TOP edges of FRAME and ignores changes in height of FRAME).