This example uses an on resize response clause on the parent of the table to allow the automatic resizing of the table. The dialog region is assumed to have no other controls in it.
response to Parent_DR # Must act on three on clauses
on resize action ResizeTable
on maximize action ResizeTable
on restore action ResizeTable
#on minimize - No action needed
action ResizeTable is
# Let all DR & child processing be done first.
# Note: Any block resets object, xcoord, xdelta, etc.
# Would save that info here, if it was needed.
begin resumable
response to timeout -1
leave block
end
# Be sure to keep same origin, after resize
change Parent_DR window position to 0 0
# Make table full size of Parent
# Note: If other controls are moved,
# you might have to make some
# invisible while you resize others.
change Table position to 0 0
change Table size to (xsize of Parent_DR) (ysize of Parent_DR)