Skip to main content

TdxLayoutContainer.InvalidateRect(TRect,Boolean) Method

Adds the region occupied by a control rectangle to a specified window’s update region. The update region represents a portion of the control client area that must be redrawn.

Declaration

procedure InvalidateRect(const R: TRect; EraseBackground: Boolean);

Parameters

Name Type
R TRect
EraseBackground Boolean

Remarks

Call the InvalidateRect method when the area occupied by a control rectangle will need to be repainted.

R provides access to the TRect that contains client coordinates of the control rectangle to be added to the update region. If this parameter is NULL, the entire client area is added to the update region.

EraseBackground specifies whether the background within the control rectangle region specified by the R parameter is to be erased when processing the update region. If EraseBackground is True, the background is erased when redrawing the control rectangle region. If this parameter is False, the background remains unchanged.

See Also