Page 1 of 1

Annotation and mouse cursor problem

Posted: Thu Oct 28, 2004 7:18 am
by 9524648
HI !
I want to change the mouse cursor appearence when the mouse is positionned on an annotation tool i've created and placed on my chart.
This can be performed via the chart settings panel (Tools->Annotation->Options->Cursor) but I don't find the property or method of the Annotation Tool class which enables to do such a thing programmaticaly.
Is there a way to do that ?
Thanks for your help. :?:

Posted: Thu Oct 28, 2004 11:47 am
by Pep
Hi,

it cannot be assigned at runtime. I've writed down our wish list to be available for the next maintenance releases.
In meantime you can simulate it using the OnMouseMove event, something like this :

Code: Select all

Private Sub TChart1_OnMouseMove(ByVal Shift As TeeChart.EShiftState, ByVal X As Long, ByVal Y As Long)
If TChart1.Tools.Items(0).asAnnotation.Clicked(X, Y) Then
     TChart1.Cursor = 2020
Else
    TChart1.Cursor = 0
End If
End Sub

Posted: Thu Oct 28, 2004 11:56 am
by 9524648
ok,
thanks for your reply.