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 : Tuesday, August 14, 2007 5:55:42 AM(UTC)

bsuresh  
bsuresh

Groups: Registered
Posts: 32


In v13, when you draw a straight line while pressing the shift key down, it used to lock the line in 0, 45 or 90 degrees.
But it doesn't happen in v15 (using c#). I am using AnnLineObject item (not in automation mode).

Thanks,
Suresh
 

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, August 15, 2007 1:12:57 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

The functionality does exist in v15 automation, but since you're not using automation, you will have to implement it yourself.

 
#3 Posted : Wednesday, August 15, 2007 6:41:53 AM(UTC)

bsuresh  
bsuresh

Groups: Registered
Posts: 32


Hi Qasem,
Thanks for the response.
If you could give me some clue on providing this, it would be helpful.
 
#4 Posted : Thursday, August 16, 2007 7:05:14 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)


I'm afraid that currently I do not have code snippet that does this.


 


The general idea is to handle mouse events, and
instead of using the exact mouse location to draw the line, only use the X or Y
coordinate, and calculate the other coordinate so that the line angle is an exact multiple of 45 degrees.
 
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.