CursortTool Initial Position
Posted: Mon Mar 29, 2010 3:35 pm
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
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