AnnotationTool - TeeRect

TeeChart for ActiveX, COM and ASP
Post Reply
mjwilliamson
Newbie
Newbie
Posts: 4
Joined: Mon May 05, 2003 4:00 am

AnnotationTool - TeeRect

Post by mjwilliamson » Mon Feb 07, 2005 7:53 pm

Hi

I want to check if the mouse position is inside an annotation
on the chart when the user clicks on the left mouse button.

I need to get the rect of the annotation but in VC++ I cannot
find a Class/Method to retrieve this information.

Can anyone help.

Thanks
Mark

tdm
Newbie
Newbie
Posts: 22
Joined: Fri Oct 22, 2004 4:00 am
Location: mérignac, france
Contact:

Post by tdm » Thu Feb 10, 2005 9:10 am

you can use the Clicked function of the annotation tool.
It needs the mouse X and Y co-ordinates as parameters and returns TRUE if those parameters are inside the annotation rectangle and false otherwise.
The mouse co-ordinates are in the MousePosition property of your ITChart object.
The MousePosition is a ITeePoint2D object which has 2 properties : X and Y.
That's all.
bye :D

Post Reply