Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

Name Type
R TRect
EraseBackground Boolean

#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