Hi,
I have code where if a user selects a horizontal line it places a box over the right axis at that position and shows the price of where the line is currently placed. I do this using the Selecting event.
When I deselect the line I would like to remove the box so that it is no longer visible. How can I determine when the box is deselected?
Thanks,
Kevin
DrawLine event for deselecting?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Kevin,
You can use MouseDown or MouseMove events for that. For example, if you are using an Annotation tool for displaying the box you can do this:
Hope this helps!
You can use MouseDown or MouseMove events for that. For example, if you are using an Annotation tool for displaying the box you can do this:
Code: Select all
void tChart1_MouseDown(object sender, MouseEventArgs e)
{
if (drawLine1.Clicked(e.X,e.Y) == null) //No line selected
{
annotation1.Active = false;
}
}
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 |