Hi Narcis,
I have just installed v2.0.2179.21171 maintenance release. I was unable to use the last few releases because of problems with the print margins, so I am not sure when this changed.
In my app the user can draw a line. The user clicks hold and drags to form a line.
The NewLine Event fires when the new line is complete, and the mouse is released. The line has both a start and end which I capture to evaluate the date between the points.
In this new release the NewLine Event fires with the mouse down and as there is no line there is nothing to capture as yet.
In this new release how do I capture the NewLine MouseUp event after the line is drawn?
Thanks
DrawLine Tool NewLine Event Changed
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi avatar,
This has been fixed as you can check here.I have just installed v2.0.2179.21171 maintenance release. I was unable to use the last few releases because of problems with the print margins, so I am not sure when this changed.
Thanks for the report, I've been able to reproduce it and this is a bug. I've added it to our defect list to be fixed for future releases. In the meantime, you can use something like the code below and implement what you wanted the NewLine event should do in the if caluse in TChart's MouseUp event.In my app the user can draw a line. The user clicks hold and drags to form a line.
The NewLine Event fires when the new line is complete, and the mouse is released. The line has both a start and end which I capture to evaluate the date between the points.
In this new release the NewLine Event fires with the mouse down and as there is no line there is nothing to capture as yet.
In this new release how do I capture the NewLine MouseUp event after the line is drawn?
Code: Select all
private int count;
private void Form1_Load(object sender, System.EventArgs e)
{
line1.FillSampleValues();
count=drawLine1.Lines.Count;
}
private void tChart1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
if (drawLine1.Lines.Count>count)
{
count=this.drawLine1.Lines.Count;
tChart1.Header.Text=count.ToString();
}
}
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 |