Page 1 of 1

delete arrows in chart (canvas)

Posted: Sun Jun 23, 2013 7:04 pm
by 16665441
Please find attached my chart.
At the top of the chart I draw an arrow ( TChart1>>Canvas ...).
You advised me for the programming.
In this chart I added points in real time.
In my project I delete the chart and I draw a new chart with other parameters (TChart1 >> CLEARCHART).
The chart is deleted but the arrows do not disappear.
how to remove the arrows?

Re: delete arrows in chart (canvas)

Posted: Wed Jun 26, 2013 8:43 am
by yeray
Hi,
jika wrote:At the top of the chart I draw an arrow ( TChart1>>Canvas ...).
jika wrote:The chart is deleted but the arrows do not disappear.
how to remove the arrows?
jika wrote:In my project I delete the chart and I draw a new chart with other parameters (TChart1 >> CLEARCHART).
Simply stop drawing the lines when you want.
Note you are calling the custom drawing functions at the AfterDraw event. This means, you are drawing manually the lines above the chart, each time the chart is drawn. If, at any time you want to stop drawing the lines, you need to add some control to when the custom drawing actions have to be executed and when not.