Refresh Tee Chart

TeeChart for ActiveX, COM and ASP
Post Reply
Rousseau
Newbie
Newbie
Posts: 31
Joined: Fri Oct 13, 2006 12:00 am
Location: St-Jean-Port-Joli, Canada
Contact:

Refresh Tee Chart

Post by Rousseau » Mon May 04, 2009 11:25 am

Hi,

Is there a function nodraw or something like this?

I want to add some series without the Tee Chart refresh my new series. I want to refresh my Tee Chart on a special event.

Thank you

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

Post by Narcís » Mon May 04, 2009 11:32 am

Hi Rousseau,

Yes, you can use Autorepaint for that setting it to false before adding your series, set it back to true when you want to refresh the chart and call Repaint too, for example:

Code: Select all

Private Sub Command1_Click()
    TChart1.AutoRepaint = False
    
    TChart1.AddSeries scLine
    TChart1.Series(0).FillSampleValues 10
    
    TChart1.AutoRepaint = True
    TChart1.Repaint
End Sub
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

Rousseau
Newbie
Newbie
Posts: 31
Joined: Fri Oct 13, 2006 12:00 am
Location: St-Jean-Port-Joli, Canada
Contact:

Post by Rousseau » Mon May 04, 2009 11:49 am

Thank you for your quick answer.

It works very well.

Thank you

Post Reply