Page 1 of 1

AnnotationTool - TeeRect

Posted: Mon Feb 07, 2005 7:53 pm
by 6928328
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

Posted: Thu Feb 10, 2005 9:10 am
by 9524648
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