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

I just wanted to let you know that I love your component! I find it extensible, easy to use, and the performance is top notch. I even think I understand much of the source. You hit a home run with this one!
Tom Kopeika, Illinois
More …

No malware No spam
McAfee Site Report
Web of Trust