Cursor Tool XValue assignment

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
nico193
Newbie
Newbie
Posts: 20
Joined: Thu Jun 05, 2003 4:00 am
Contact:

Cursor Tool XValue assignment

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
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Cursor Tool XValue assignment

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;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply