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:
-
With no control selected,
select
Layout
Attach
Define Attachment.
-
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):
-
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.
Note that the attachment
arrow points to the center (not the edge) of the Close Window button.
-
Make a second attachment
from the center of the Close Window button to the right edge of the
frame.
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.