Important: The information in this document is obsolete and should not be used for new development.
InvalRect
Use theInvalRect
procedure to add a rectangle to a window's update region.
PROCEDURE InvalRect (badRect: Rect);
- badRect
- A rectangle, in local coordinates, that is to be added to a window's
update region.DESCRIPTION
TheInvalRect
procedure adds a specified rectangle to the update region of the window whose graphics port is the current port. Specify the rectangle in local coordinates. The Window Manager clips it, if necessary, to fit in the window's
content region.Both your application and the Window Manager use the
InvalRect
procedure.
When the user enlarges a window, for example, the Window Manager usesInvalRect
to add the newly created content region to the update region. Your application usesInvalRect
to add the two rectangles formerly occupied by the scroll bars in the smaller content area.