Page 1 of 1

New thread to draw the chart?

Posted: Fri Oct 22, 2010 8:32 am
by 16455723
Dear Sir,

Just want to know that is the DBChart/Chart drawing in a new thread?
If yes, is there any property to switch off this feature?
(Since I want to save the chart to a BMP file in synchronize mode instead of using OnAfterDraw event)

Moreover, what is the sequence of the tools drawing on the chart if there are more than one tools?
Why am I asking this question is some tools's properties may be related to another tools's properties.

Thanks.

Re: New thread to draw the chart?

Posted: Mon Oct 25, 2010 8:52 am
by narcis
Dear Carson,

I'm not 100% sure about which is your problem or what you are trying to achieve. TeeChart doesn't use threads. What you could do instead of using OnAfterDraw event is calling TChart.Draw() method before exporting it to a bitmap. This forces the chart to being internally painted and therefore all objects are on place for exporting. If this doesn't help please give us more details about your exact problem.

Thanks in advance.