Access Cursor selection by code

TeeChart for ActiveX, COM and ASP
Post Reply
Petar
Newbie
Newbie
Posts: 40
Joined: Tue Oct 06, 2009 12:00 am

Access Cursor selection by code

Post by Petar » Wed Apr 13, 2011 4:29 pm

Hi,

I would like to change the cursor type on run time( by using code).
cursor.png
cursor.png (15.93 KiB) Viewed 7337 times
How can I do that, i didn't find anything like "AxTChart.Cursor" or similar?

Thanks,

Petar

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

Re: Access Cursor selection by code

Post by Sandra » Fri Apr 15, 2011 9:49 am

Hello Petar,

I think you can do something as next lines of code:

Code: Select all

TChart1.OriginalCursor = -21
Please, confirm us if previous lines of code works as you expect?

I hope will helps.
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

Petar
Newbie
Newbie
Posts: 40
Joined: Tue Oct 06, 2009 12:00 am

Re: Access Cursor selection by code

Post by Petar » Fri Apr 15, 2011 2:39 pm

Thanks Sandra,

in fact in .NET this property does not exists ( instead I used ctlCursor)

Cheers

Petar

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

Re: Access Cursor selection by code

Post by Sandra » Mon Apr 18, 2011 8:14 am

Hello Petar,

Could you tell us which version of TeeChartAxtivex are you using now? So in last version of TeeChartActivex and .Net property originalCursor exist as you can check in next lines of code:

Code: Select all

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        AxTChart1.OriginalCursor = -21
    End Sub
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