Page 1 of 1

Refresh Tee Chart

Posted: Mon May 04, 2009 11:25 am
by 9532689
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

Posted: Mon May 04, 2009 11:32 am
by narcis
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

Posted: Mon May 04, 2009 11:49 am
by 9532689
Thank you for your quick answer.

It works very well.

Thank you