Important: The information in this document is obsolete and should not be used for new development.
OffsetRectTo move a rectangle, use the
PROCEDURE OffsetRect (VAR r:\xDDRect; dh,dv:\xDDInteger);
- The rectangle to move.
- The horizontal distance to move the rectangle.
- The vertical distance to move the rectangle.
OffsetRectprocedure moves the rectangle that you specify in the
rparameter by adding the value you specify in the
dhparameter to each of its horizontal coordinates and the value you specify in the
dvparameter to each of its vertical coordinates. If the
dvparameters are positive, the movement is to the right and down; if either is negative, the corresponding movement is in the opposite direction. The rectangle retains its shape and size; it's merely moved on the coordinate plane. The movement doesn't affect the screen unless you subsequently call a routine to draw within the rectangle.