SuppressPaint

Declaration: ChartBook.Tables[].SuppressPaint: boolean;
Changing any element of a table will trigger the repaint process. This considerably slows down the (write) access to the table. It is therefore recommended to temporarily switch off repainting when a lot of cells are changed programmatically.


Sample
Program:
The example below shows how to temporarily switch off the repaint mechanism. The entire table is filled by a string indicating the cell index after switching off the repaint mechanism. When completed the repainting is enabled again (enabling the repainting automatically refreshes the table display).
program SuppressRepaint;

const
  PAGE = 1;

var
  i, j : integer;

begin
ChartBook.Reset;
ChartBook.Configure
   (PAGE,               // page 1
    false, true, false, // only the table is visible
    300, 300);          // default width & height
with ChartBook.Tables[PAGE] do
  begin
  NrOfColumns := 8;
  NrOfRows := 100;
  SuppressPaint := true; // suppress repaint in the loop below
  for i:=1 to NrOfColumns do
    for j:=1 to NrOfRows do
      Elem[i,j] := 'Cell ['+IntToStr(i)+','+IntToStr(j)+']';
  SuppressPaint := false;  // refresh the new contents
  end;
end.