Page 1 of 1
BUG? Cursor Tool and Mouse Cursor
Posted: Fri Jan 22, 2010 11:11 am
by 13052926
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?
Re: BUG? Cursor Tool and Mouse Cursor
Posted: Fri Jan 22, 2010 4:27 pm
by yeray
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:
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();
}
Re: BUG? Cursor Tool and Mouse Cursor
Posted: Thu Jan 28, 2010 10:54 am
by yeray
Hi rossmc,
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;
for this one:
Code: Select all
chartTool1.OriginalCursor = (checkBox1.Checked) ? Cursors.Cross : Cursors.Arrow;
Re: BUG? Cursor Tool and Mouse Cursor
Posted: Thu Jan 28, 2010 11:40 am
by 13052926
Thanks!