Series.Cursor and TChart.Cursor
Posted: Thu Sep 20, 2012 12:42 am
Hello,
I would like to set the Series.Cursor to something different than default, so that when I mouse over the series, the mouse cursor will change. When I try to do this, as I mouse over the series, the Chart.Cursor gets changed. When the mouse leaves the series, the cursor remains in the changed state. If I try to change the Chart.Cursor back to the original using the Series.MouseLeave event, then the cursor changes briefly, but then some other event reverts it back to the changed state.
For example if I have chart1 and series1, and I want the mouse cursor to change from Arrow to Hand as I mouse over series1, the following happens:
Set series1.Cursor = Cursors.Hand
Set chart1.Cursor = Curosor.Arrow
Mouse over chart1 and cursor is an Arrow
Mouse over series1 and the cursor changes to Hand
At this point, the chart1.Cursor has been changed to Hand (How? Why?)
When the mouse leaves series1, the cursor remains Hand
If I try to use series1.MouseLeave to set chart1.Cursor = Arrow, it will momentarily change to Arrow, then immediately change back to Hand
What should I do?
I'm using TeeChart for .NET 2011 4.1.2011.10190
Thanks,
Gregg
I would like to set the Series.Cursor to something different than default, so that when I mouse over the series, the mouse cursor will change. When I try to do this, as I mouse over the series, the Chart.Cursor gets changed. When the mouse leaves the series, the cursor remains in the changed state. If I try to change the Chart.Cursor back to the original using the Series.MouseLeave event, then the cursor changes briefly, but then some other event reverts it back to the changed state.
For example if I have chart1 and series1, and I want the mouse cursor to change from Arrow to Hand as I mouse over series1, the following happens:
Set series1.Cursor = Cursors.Hand
Set chart1.Cursor = Curosor.Arrow
Mouse over chart1 and cursor is an Arrow
Mouse over series1 and the cursor changes to Hand
At this point, the chart1.Cursor has been changed to Hand (How? Why?)
When the mouse leaves series1, the cursor remains Hand
If I try to use series1.MouseLeave to set chart1.Cursor = Arrow, it will momentarily change to Arrow, then immediately change back to Hand
What should I do?
I'm using TeeChart for .NET 2011 4.1.2011.10190
Thanks,
Gregg