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

Resource Allocation Chart is one of those rare components that really fires the imagination. It looks great and is extremely flexible. A must for any application that allocates time slots.
Trevor Pegley, Visionhall
More …

No malware No spam
McAfee Site Report
Web of Trust