Hi !
1. Most of the time when I delete series (using the Editor) that had DragMarks added by code, the TChart crashes when moving the mouse-cursor over the chart canvas.
It seems to have something to do with having moved the DragMarks prior to deleting the series.
Deleting the DragMarks before deleting the series does not change this.
2. I have the Chart Editor permanently displayed on a form with a Chart, (not using the Editor as a popup window) as described in this posting: http://www.teechart.net/support/viewtop ... highlight=
After deleting all series in the chart by editor and then adding more series by code the add/delete/title/clone/... -buttons remain deactivated. Is there any way I can have these buttons re-activated?
Thanks,
Matt.
Question re. Crashes when having used DragMarks
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Matt,
Please find below the answers to your questions:
1. We could reproduce this here and fixed it for the next release. In the meantime you can remove the series at run-time:
or dispose both the series and the tool:
2. This works fine here using the latest maintenance release available at the client area. Which TeeChart version are you using?
Please find below the answers to your questions:
1. We could reproduce this here and fixed it for the next release. In the meantime you can remove the series at run-time:
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
if (tChart1.Series.Count > 0)
tChart1.Series.Remove(tChart1[0]);
}
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
dragMarks1.Dispose();
if (tChart1.Series.Count > 0)
tChart1[0].Dispose();
}
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |