LEADTOOLS Support
Document
Document SDK Questions
Drawing Line object when shift key is pressed
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, August 14, 2007 5:55:42 AM(UTC)
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
#2
Posted
:
Wednesday, August 15, 2007 1:12:57 AM(UTC)
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)
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)
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.
LEADTOOLS Support
Document
Document SDK Questions
Drawing Line object when shift key is pressed
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.