Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, January 28, 2009 3:55:52 AM(UTC)

makumar  
makumar

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
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, January 28, 2009 5:30:30 AM(UTC)

Adam Boulad  
Guest

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)

makumar  
makumar

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)

Adam Boulad  
Guest

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.
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.050 seconds.