Page 1 of 1

Access Cursor selection by code

Posted: Wed Apr 13, 2011 4:29 pm
by 15054354
Hi,

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

Thanks,

Petar

Re: Access Cursor selection by code

Posted: Fri Apr 15, 2011 9:49 am
by 10050769
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,

Re: Access Cursor selection by code

Posted: Fri Apr 15, 2011 2:39 pm
by 15054354
Thanks Sandra,

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

Cheers

Petar

Re: Access Cursor selection by code

Posted: Mon Apr 18, 2011 8:14 am
by 10050769
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,