Define Attachments That Move the Close Window Button

To fix the problem of the Table Viewer being overlapped, you must define two attachments that move the Close Window button as the frame size is changed.
Attachments to the center of a control cause that control to move when the attachment anchor is moved. This is in contrast to the Table Viewer attachments, which are defined on the edges of the Table Viewer, and cause it to expand or contract, but remain in the same location on the frame.
To define two attachments on the Close Window button, follow these steps:
  1. With no control selected, select Layoutthen selectAttachthen selectDefine Attachment.
  2. In the Define Attachment dialog box, select the direction and type as indicated (both of these selections are the defaults, so they should already be selected):
    Select left direction and absolute type
  3. Attach the center of the Close Window button to the bottom edge of the frame by placing the mouse pointer in the center of the Close Window button. Then click and drag to the bottom edge of the frame, just above the scroll bar, and then release the mouse button.
    Creating an Attachment to the Close Window Button
    Attaching the Close Window button
    Note that the attachment arrow points to the center (not the edge) of the Close Window button.
  4. Make a second attachment from the center of the Close Window button to the right edge of the frame.
    The Four Completed Attachments
    The four completed attachments
Save and test the frame again. As you enlarge the frame, the Table Viewer should resize and the Close Window button should move.