LEADTOOLS Support
Document
Document SDK Questions
Re: Restring cursor from entrying into an object
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, January 28, 2009 3:55:52 AM(UTC)
Groups: Registered
Posts: 23
Hi,
I am using leadtools Document 14.5. And using Delphi interface.
I want to restrict cursor to enter into a triangular Polygon object. How I can do that?
Thanx for your help.
Regards,
Manoj Kumar
#2
Posted
:
Wednesday, January 28, 2009 5:30:30 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Manoj,
Can you provide me with more details? Is the polygon object an Annotation object or part of the image Pixel? Please explain more about your requirements.
#3
Posted
:
Wednesday, January 28, 2009 6:24:05 PM(UTC)
Groups: Registered
Posts: 23
Hi Adam,
I have an image. And then I draw a Polygon anonotation object on it.
Polygon object is in triangular shape. Now when I move my cursor it it
enters into Polygon object. My requirement is that the cursor should
not enter into the Polygon object. It should stop at the boundry of the
Polygon object.
Thanx for your time.
Regards,
Manoj Kumar
#4
Posted
:
Thursday, January 29, 2009 5:04:47 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Manoj,
I haven't seen this done before, but you could probably do it by handling the Mouse Move events and then use the AnnHitTestExt method to check whether the mouse cursor was within the object or not, then force the cursor to move outside if it tries to go inside using the SetCursorPos API function.
LEADTOOLS Support
Document
Document SDK Questions
Re: Restring cursor from entrying into an object
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.