Page 1 of 1

Mouse Cursor

Posted: Wed Dec 22, 2010 6:23 am
by 13052926
I seem to be having a new problem with the mouse cursor. I have a standard chart to which I add a line series. I set the line series cursor to hand so when user mouse over series cursor changes to a hand. On mouse out the cursor goes back to an arrow which is my default. That all works exactly as expected.

Now I have a region on the chart that when user mouses over it, I manually change the CHART cursor to a custom cursor. When the user mouses out I set the chart cursor back to the arrow.

After this point, mousing over series no longer changes the cursor to a hand? What is happening here?

Developing a Windows Forms application using VB.NET and .NET 3.5 version of chart.

Re: Mouse Cursor

Posted: Wed Dec 22, 2010 12:18 pm
by 10050769
Hello rossmc,

I couldn't reproduce your problem using last version 3 of TeeChart.Net and next code:

Code: Select all

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        InitializeChart()
    End Sub
    Private Line1 As Steema.TeeChart.Styles.Line
    Private Sub InitializeChart()
        TChart1.Aspect.View3D = False
        Line1 = New Steema.TeeChart.Styles.Line(TChart1.Chart)
        Line1.FillSampleValues()
        AddHandler TChart1.MouseMove, AddressOf Me.TChart1_MouseMove
    End Sub

    Private Sub TChart1_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs)
        If (Line1.Clicked(e.X, e.Y) <> -1) Then
            TChart1.Cursor = Cursors.Hand
        Else
            TChart1.Cursor = Cursors.Default
        End If
    End Sub
Could you tell us if in previous code appears your problem? If your problem doesn't appear in it, please, modify it, so we can help you find a good solution.

Thanks,