How to prevent flickering when making many changes.


If you're making multiple changes to the chart, it's always a good idea to make those changes inside a BeginUpdate and EndUpdate block. This prevents the chart from updating the display after each separate change, and so 1) it's much quicker, and 2) the display doesn't flicker because it's not being updated multiple times.

RAC.BeginUpdate;
try

   // make many changes to the chart

finally
  RAC.EndUpdate;
end;

Similarly if you're making multiple changes to a resource or allocation, use can either use the above, or buffer updates to a single resource or allocation at a time:

MyResource.BeginUpdate;
try

   // make many changes to the "MyResource" resource

finally
  MyResource.EndUpdate;
end;
What People Say

... The conclusion cannot be an other one than to state that if you are looking for a planning component you have to get the RAC. For your future planning business it is simply a must.
H. de Boer, Staaf Automatisering (see the full case study)
More …

No malware No spam
McAfee Site Report
Web of Trust