strange cursor behaviour after upgrade to Teechart .NET 2014

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Joakim
Newbie
Newbie
Posts: 1
Joined: Tue Feb 03, 2015 12:00 am

strange cursor behaviour after upgrade to Teechart .NET 2014

Post by Joakim » Tue Feb 03, 2015 9:00 pm

Hi

I just upgraded the teechart from teechart .net 2011 to teechart .net 2014 and I have stumbled across quite a few problems in behaviour compared to before the upgrade.

For all our graphs, we have used the following code when initializing the series on the graphs :

Code: Select all

oSerie.Cursor = Cursors.Hand
This should have the effect that when the user is moving his/her mousepointer over the series this will change to a "hand" cursor. When moving the mousepointer away from the series, the cursor should go back to the default mousepointer. This was working perfectly in 2011. With 2014 the mouse cursor never goes back, and instead remains as a "hand".
When opening up the designer for the teechart, I now discovered that for some reason the cursor selection has been lost on the whole teechart (see attached image).

Is this a know problem or is there a know work-around for it?
Attachments
cursorissue.png
cursorissue.png (11.77 KiB) Viewed 5607 times

Quant
Advanced
Posts: 142
Joined: Tue Dec 30, 2014 12:00 am

Re: strange cursor behaviour after upgrade to Teechart .NET 2014

Post by Quant » Wed Feb 04, 2015 8:58 am

I am also facing same problem

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: strange cursor behaviour after upgrade to Teechart .NET 2014

Post by Christopher » Wed Feb 04, 2015 10:46 am

Hello,

I'm afraid that the fix to defect id=1020 has broken this functionality. Many apologies for any inconvenience this has caused. I have added this defect to our database with id=1115 and have already fixed it.

In the meantime, as a partial workaround (changes made in the Chart Editor will not be reflected), you can use this code:

Code: Select all

    Bar series1 = new Bar();

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;

      tChart1.Series.Add(series1);
      series1.Marks.Visible = true;
      series1.FillSampleValues();

      tChart1.MouseMove += tChart1_MouseMove;

    }

    void tChart1_MouseMove(object sender, MouseEventArgs e)
    {
      for (int i = 0; i < tChart1.Series.Count; i++)
      {
        if(tChart1[i].Clicked(e.Location) > -1)
        {
          tChart1.Cursor = Cursors.Hand;
        }
        else
        {
          tChart1.Cursor = Cursors.Default;
        }
      }
    }
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply