Page 1 of 1

strange cursor behaviour after upgrade to Teechart .NET 2014

Posted: Tue Feb 03, 2015 9:00 pm
by 15671460
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?

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

Posted: Wed Feb 04, 2015 8:58 am
by 16071129
I am also facing same problem

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

Posted: Wed Feb 04, 2015 10:46 am
by Christopher
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;
        }
      }
    }