Page 1 of 1

Cursor Tool XValue assignment

Posted: Fri Jun 12, 2009 8:34 am
by 8120354
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


Re: Cursor Tool XValue assignment

Posted: Fri Jun 12, 2009 2:36 pm
by narcis
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;