TeeChart for ActiveX, COM and ASP
-
tdm
- Newbie

- Posts: 22
- Joined: Fri Oct 22, 2004 4:00 am
- Location: mérignac, france
-
Contact:
Post
by tdm » Thu Oct 28, 2004 7:18 am
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.

-
Pep
- Site Admin

- Posts: 3316
- Joined: Fri Nov 14, 2003 5:00 am
-
Contact:
Post
by Pep » Thu Oct 28, 2004 11:47 am
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
-
tdm
- Newbie

- Posts: 22
- Joined: Fri Oct 22, 2004 4:00 am
- Location: mérignac, france
-
Contact:
Post
by tdm » Thu Oct 28, 2004 11:56 am
ok,
thanks for your reply.