Event when screen updates after drawing points

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MTW
Newbie
Newbie
Posts: 18
Joined: Fri Apr 02, 2004 5:00 am

Event when screen updates after drawing points

Post by MTW » Tue Jun 19, 2007 5:57 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jun 20, 2007 9:31 am

Hi MTW,

You could try using TChart's OnAfterDraw event for that.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

MTW
Newbie
Newbie
Posts: 18
Joined: Fri Apr 02, 2004 5:00 am

Post by MTW » Thu Jun 21, 2007 5:01 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jun 22, 2007 7:37 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply