RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTransparentControl.Invalidate Method

Schedules a control repaint.

Pascal
procedure Invalidate; override;
C++
virtual __fastcall Invalidate();

Invalidate informs a control that its entire surface needs to be repainted. Calling Invalidate can prevent flicker caused by a series of partial repaints. There is no performance penalty for calling Invalidate multiple times before the control is actually repainted. 

The actual repaint does not occur until the control is updated. To force an immediate repaint, call Repaint instead. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!