Vcl.Controls.TWinControl.Invalidate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Invalidate; override;

C++

virtual void __fastcall Invalidate(void);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TWinControl

Description

Schedules a control repaint.

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.

See Also