When I add the selector tool to a chart, it selects the chart and draws selection boxes in the four corners of the chart.
I would like to clear the selection so the chart is not selected and the boxes are not drawn unless the user clicks on the chart to select it.
I tried setting selector.Selection to null, but it is read-only.
I don't see any method to ClearSelection().
Is there any way to clear the selection?
How to clear selection of Selector tool?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi LT411,
You can set the tool to not Active:
And enable it when the chart has been clicked, for example:
You can set the tool to not Active:
Code: Select all
selector1.Active = false;
Code: Select all
void tChart1_Click(object sender, EventArgs e)
{
selector1.Active = true;
}
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 |
Thanks for the reply. That works, however now I've run into another problem.
I'm using the selector to select a line on the chart and delete it. When I do, the selection boxes remain. I tried changing the Active property to false, then true; but the selection boxes remain.
I really need a way to clear the selection or to select the entire chart to clear the selection boxes from where the line used to be.
Any ideas?
I'm using the selector to select a line on the chart and delete it. When I do, the selection boxes remain. I tried changing the Active property to false, then true; but the selection boxes remain.
I really need a way to clear the selection or to select the entire chart to clear the selection boxes from where the line used to be.
Any ideas?
Hello,
you can add this line :
selector1.Dispose();
after the Series has been removed.
you can add this line :
selector1.Dispose();
after the Series has been removed.
Pep Jorge
http://support.steema.com
http://support.steema.com