Page 1 of 1

Slow Repaint

Posted: Thu Nov 30, 2006 12:09 pm
by 9527852
Hello,

I'm experiencing the following performance issue with the ActiveX version of TChart Pro v7:
When creating a chart which has 6 fastLine series, with 4096 points each. calling repaint() on the chart takes a long time.

If I remove the calls to OnBeforeDrawChart or OnAfterDraw, the chart repaint() is quick, adding one of those events even without drawing on the chart, (i.e. Sub TChart1_OnBeforeDrawChart() End Sub) slows the repaint() method significantly.

I need to be able to draw lines on the chart based on input from the user, drawing without calling repaint() does not remove previous lines.

Any ideas would be much appreciated!
Thanks.

Posted: Thu Nov 30, 2006 1:01 pm
by narcis
Hi Meirs,

Could you please send us a simple example we can run "as-is" to reproduce the problem here?

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

Posted: Thu Dec 07, 2006 8:05 am
by 9527852
I can't access the newsgroup from my computer, Is there any other way I can send you a sample? can I email it?
Thanks

Posted: Thu Dec 07, 2006 10:03 am
by Pep
Hi Meirs,

you can send me it directly to pep@steema.com and I'll take a look.
BTW, have you revised the "Fast delete and Fast pen" example included into the Teechart Pro Features demo project ? It shows how to use the "DeleteRange" method which could be helpfull for you.