Page 1 of 1

Event when screen updates after drawing points

Posted: Tue Jun 19, 2007 5:57 pm
by 9231987
I am drawing a surface chart. After adding the points, there is about a 3 second delay until the chart appears on the screen. Is there an event or property of the chart that indicates that the screen has been updated?

Thank you.
M Weingarden

Posted: Wed Jun 20, 2007 9:31 am
by narcis
Hi MTW,

You could try using TChart's OnAfterDraw event for that.

Posted: Thu Jun 21, 2007 5:01 pm
by 9231987
Thank you for your suggestion. However, it appears that whenever a change is made to the chart (eg. the title), the event occurs when the drawing is complete. I want to be able to set a flag when the surface plot is complete. However, when I clear the flag, before adding the points, the flag gets set from some other change made previously to the chart.

Is there any indication that the chart drawing is in an active state or some other way for me to know that the chart has not been completed yet?

Thanks
M Weingarden

Posted: Fri Jun 22, 2007 7:37 am
by narcis
Hi MTW,

In that case you might be interested in using Series's OnAfterDrawValues or OnBeforeAdd and OnAfterAdd events and TChart's OnBeforeDrawChart, OnAfterDraw, OnBeforeDrawSeries and OnBeforeDrawAxes.

If this doesn't help please give us some more information on what are you exactly trying to achieve so that we can make a more accurate suggestion.