TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
nico193
- Newbie
- Posts: 20
- Joined: Thu Jun 05, 2003 4:00 am
-
Contact:
Post
by nico193 » Fri Jun 12, 2009 8:34 am
Hello,
Again, something that worked with Teechart for .NET1.1 and seems to be broken in the .NET2.0 version :
When setting the XValue of a CursorTool, we now have to set it twice so that it works.
Code: Select all
cursorTool1.Series=mySerie;
cursorTool1.XValue = 0,25 * (GraphChart.Axes.Bottom.Maximum - GraphChart.Axes.Bottom.Minimum) + GraphChart.Axes.Bottom.Minimum;
// The Xvalue is not equal to the calculation !!!
// Setting it a second time will work !
cursorTool1.XValue = 0,25 * (GraphChart.Axes.Bottom.Maximum - GraphChart.Axes.Bottom.Minimum) + GraphChart.Axes.Bottom.Minimum;
// XValue OK
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Fri Jun 12, 2009 2:36 pm
Hi nico193,
Yes, this is quite a strange known issue for which we haven't found a solution so far. You can solve this problem setting cursor's XValue again after setting YValue, for example:
Code: Select all
cursor1.XValue = 10;
cursor1.YValue = 10;
cursor1.XValue = 10;