Page 1 of 1

CursortTool Initial Position

Posted: Mon Mar 29, 2010 3:35 pm
by 14045280
Dear Sir,

I try to impose the initial position of a vertical cursor (CursorTool) without success.
The version used is : 3.5.3498.27368.

Here my piece of code :

public partial class Form1 : Form
{
CursorTool _leftCursor;
Steema.TeeChart.Styles.Line line1;

public Form1()
{
InitializeComponent();


tChart1.Series.Add(line1 = new Steema.TeeChart.Styles.Line());
line1.FillSampleValues();

_leftCursor = new CursorTool(tChart1.Chart);
_leftCursor.Style = CursorToolStyles.Vertical;
_leftCursor.Series = line1;
_leftCursor.Active = true;

}

private void Form1_Load(object sender, EventArgs e)
{
_leftCursor.XValue = 1;
}

The cursor is not visible.
If I comment the line _leftCursor.XValue = 1 the initial position of the Vertical cursor is at the middle of the graph.

Can you help me ?

Philippe

Re: CursortTool Initial Position

Posted: Tue Mar 30, 2010 9:17 am
by yeray
Hi Philippe,

I think that the problem is the same that was discussed here

Re: CursortTool Initial Position

Posted: Tue Mar 30, 2010 11:35 am
by 14045280
Resolved.

Thank you very much

Philippe