I have a vertical cursor tool on my chart, pretty standard.
Now when I enable drawing on my drawline tool, I want to change the mouse cursor (pointer) to a cross. The mouse cursor does not visibly change as long as the cursor tool is still active. If I remove the cursor tool I can then see the mouse cursor change from an arrow to a cross?
I'm on version 3.5 of .NET control. Any ideas?
BUG? Cursor Tool and Mouse Cursor
Re: BUG? Cursor Tool and Mouse Cursor
Hi rossmc,
Testing this, I've seen that with some chart tools (reproducible with drawline and cursor, but not with annotation) changing the Cursor has no effect. I've added this to the defect list to be fixed in future releases (TF02014650).
Code to reproduce:
Testing this, I've seen that with some chart tools (reproducible with drawline and cursor, but not with annotation) changing the Cursor has no effect. I've added this to the defect list to be fixed in future releases (TF02014650).
Code to reproduce:
Code: Select all
//Steema.TeeChart.Tools.DrawLine chartTool1;
Steema.TeeChart.Tools.CursorTool chartTool1;
private void InitializeChart()
{
chartController1.Chart = tChart1;
tChart1.Aspect.View3D = false;
tChart1.Legend.Visible = false;
new Steema.TeeChart.Styles.Line(tChart1.Chart);
tChart1[0].FillSampleValues();
//chartTool1 = new Steema.TeeChart.Tools.DrawLine(tChart1.Chart);
chartTool1 = new Steema.TeeChart.Tools.CursorTool(tChart1.Chart);
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
tChart1.Cursor = (checkBox1.Checked) ? Cursors.Cross : Cursors.Arrow;
}
private void button1_Click(object sender, EventArgs e)
{
tChart1.Tools.Clear();
}
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: BUG? Cursor Tool and Mouse Cursor
Hi rossmc,
As an update, we've found that this is not a bug. Simply change the line:
for this one:
As an update, we've found that this is not a bug. Simply change the line:
Code: Select all
tChart1.Cursor = (checkBox1.Checked) ? Cursors.Cross : Cursors.Arrow;
Code: Select all
chartTool1.OriginalCursor = (checkBox1.Checked) ? Cursors.Cross : Cursors.Arrow;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |