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

Mouse Cursor

Post by rossmc » Wed Dec 22, 2010 6:23 am

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Mouse Cursor

Post by Sandra » Wed Dec 22, 2010 12:18 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply