Important: The information in this document is obsolete and should not be used for new development.
UnionRectTo calculate the smallest rectangle that encloses two rectangles, use the
PROCEDURE UnionRect (src1,src2:\xDDRect; VAR dstRect: Rect);
- The first of two rectangles to enclose.
- The second of two rectangles to enclose.
- The rectangle that encloses them.
UnionRectprocedure returns in the
dstRectparameter the smallest rectangle that encloses both of the rectangles you specify in the
src2parameters. One of the source rectangles may also be the destination.