Back to Devexpress

TcxControl.InvalidateRect(TRect,Boolean) Method

vcl-cxcontrols-dot-tcxcontrol-dot-invalidaterect-x28-system-dot-types-dot-trect-system-dot-boolean-x29.md

latest1.3 KB
Original Source

TcxControl.InvalidateRect(TRect,Boolean) Method

Adds a specified portion of the control’s client area to the window update region.

Declaration

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

Parameters

NameType
RTRect
EraseBackgroundBoolean

Remarks

Call this procedure and pass a rectangle as the R parameter to mark a rectangular portion of the client area as a part of the window update region (that is, a window area marked for update on demand). The resulting control update area is an intersection of the specified rectangle and the ClientBounds property value. Pass True or False as the EraseBackground parameter to redraw the control’s background or leave it unchanged.

Note

An InvalidateRect procedure call has no effect if the specified rectangle does not intersect the control’s client area.

See Also

TcxControl Class

TcxControl Members

cxControls Unit