TcxControl.InvalidateRect(TRect,Boolean) Method
Adds a specified portion of the control’s client area to the window update region.
Declaration
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