cursor does not work
Posted: Tue Jul 21, 2009 11:29 am
I have only one control tChart1 on main page. In *.cs class I have such a code:
I would like the cursor move when mouse cursor is moving. Why does this example not work ? What's wrong with it ?
Code: Select all
Steema.TeeChart.Tools.CursorTool cursorTool1 = new Steema.TeeChart.Tools.CursorTool(tChart1.Chart);
Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
line1.VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left;
cursorTool1.Style = Steema.TeeChart.Tools.CursorToolStyles.Vertical;
cursorTool1.FollowMouse = true;
cursorTool1.Active = true;
cursorTool1.Series = line1;
line1.FillSampleValues(20);
I would like the cursor move when mouse cursor is moving. Why does this example not work ? What's wrong with it ?