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?
delete arrows in chart (canvas)
delete arrows in chart (canvas)
- Attachments
-
- Capture.PNG (8.18 KiB) Viewed 6532 times
Re: delete arrows in chart (canvas)
Hi,
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.
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?
Simply stop drawing the lines when you want.jika wrote:In my project I delete the chart and I draw a new chart with other parameters (TChart1 >> CLEARCHART).
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.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |