DragPoint.Cursor not showing
Posted: Mon Apr 18, 2016 12:41 pm
Hallo everybody,
I am using the following code to be able to drag Point in my lines:
Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line();
line1.FillSampleValues();
Steema.TeeChart.Tools.DragPoint dragPoint1 = new Steema.TeeChart.Tools.DragPoint();
tChart1.Tools.Add(dragPoint1);
dragPoint1.Cursor = System.Windows.Forms.Cursors.Cross;
dragPoint1.Series = line1;
line1.Color = Color.Red;
tChart1.Series.Add(line1);
Steema.TeeChart.Styles.Line line2 = new Steema.TeeChart.Styles.Line();
line2.FillSampleValues();
Steema.TeeChart.Tools.DragPoint dragPoint2 = new Steema.TeeChart.Tools.DragPoint();
tChart1.Tools.Add(dragPoint2);
dragPoint2.Cursor = System.Windows.Forms.Cursors.Cross;
dragPoint2.Series = line2;
line2.Color = Color.Green;
tChart1.Series.Add(line2);
The Problem is that the Cursor property only works on the first line! I tried all combination and changed orders and so on... Always on the first line the curosr works. The second line keeps the usual arrow Cursor as the rest of Windows.
I already found out that the order of adding the DragPoints is decidive, not the order of the lines themselves!
How can I have the cross Cursor appear on all lines??? I even believe in my very first try it worked, but I cannot reproduce that.
Thank you very much in advance!
I am using the following code to be able to drag Point in my lines:
Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line();
line1.FillSampleValues();
Steema.TeeChart.Tools.DragPoint dragPoint1 = new Steema.TeeChart.Tools.DragPoint();
tChart1.Tools.Add(dragPoint1);
dragPoint1.Cursor = System.Windows.Forms.Cursors.Cross;
dragPoint1.Series = line1;
line1.Color = Color.Red;
tChart1.Series.Add(line1);
Steema.TeeChart.Styles.Line line2 = new Steema.TeeChart.Styles.Line();
line2.FillSampleValues();
Steema.TeeChart.Tools.DragPoint dragPoint2 = new Steema.TeeChart.Tools.DragPoint();
tChart1.Tools.Add(dragPoint2);
dragPoint2.Cursor = System.Windows.Forms.Cursors.Cross;
dragPoint2.Series = line2;
line2.Color = Color.Green;
tChart1.Series.Add(line2);
The Problem is that the Cursor property only works on the first line! I tried all combination and changed orders and so on... Always on the first line the curosr works. The second line keeps the usual arrow Cursor as the rest of Windows.
I already found out that the order of adding the DragPoints is decidive, not the order of the lines themselves!
How can I have the cross Cursor appear on all lines??? I even believe in my very first try it worked, but I cannot reproduce that.
Thank you very much in advance!