BUG? Cursor Tool and Mouse Cursor

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
rossmc
Newbie
Newbie
Posts: 57
Joined: Wed Apr 08, 2009 12:00 am

BUG? Cursor Tool and Mouse Cursor

Post by rossmc » Fri Jan 22, 2010 11:11 am

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?

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: BUG? Cursor Tool and Mouse Cursor

Post by Yeray » Fri Jan 22, 2010 4:27 pm

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();
        }
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: BUG? Cursor Tool and Mouse Cursor

Post by Yeray » Thu Jan 28, 2010 10:54 am

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

rossmc
Newbie
Newbie
Posts: 57
Joined: Wed Apr 08, 2009 12:00 am

Re: BUG? Cursor Tool and Mouse Cursor

Post by rossmc » Thu Jan 28, 2010 11:40 am

Thanks!

Post Reply