TCustomTeePanel.AutoRepaint
TCustomTeePanel
property AutoRepaint: Boolean;
Unit
TeeProcs
Description
The AutoRepaint property indicates if a Chart should re-display (redraw) its contents whenever a property (color, etc) changes.
By default it's True.
Setting AutoRepaint to False will not refresh the Chart display until we manually call the Chart1.Repaint method.
This can increment a little bit the speed when modifying many properties at the same time, avoiding the slow call to Windows API "Invalidate" procedure.
The Chart Editor component optionally uses the AutoRepaint property to redraw the chart only after closing the dialog. See TChartEditor.AutoRepaint property.
Example:
Chart1.AutoRepaint := False;
try
Chart1.Gradient.Color:=clBlue;
...
Series1.Add( 123, 'Hello world', clRed );
...
finally
Chart1.AutoRepaint := True;
end;
See also:
TChart.Repaint method.
TChart.Invalidate method.
TChartEditor.AutoRepaint property.