Cursor Tool XValue assignment
Posted: 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.
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