RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl.Invalidate Method

Completely repaint control.

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

Use Invalidate when the entire control needs to be repainted. When more than one region within the control needs repainting, Invalidate will cause the entire window to be repainted in a single pass, avoiding flicker caused by redundant repaints. There is no performance penalty for calling Invalidate multiple times before the control is actually repainted. 

 

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