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 : Thursday, February 23, 2017 11:51:09 AM(UTC)

maneka  
maneka

Groups: Registered
Posts: 17

Thanks: 1 times

Hello,

I have a scenario where for example if I selected rectangle and I want to keep drawing rectangles until i select a different tool. Currently as soon as the object has finished drawing the manager current object id is set to -1. Is it possible to achieve this in the javascript library

Thank you
Maneka

 

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 : Thursday, February 23, 2017 12:28:54 PM(UTC)

Hadi  
Hadi

Groups: Manager, Tech Support, Administrators
Posts: 197

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

Hello Maneka,

If you wish to continue drawing the same object over and over again until you select a different tool, then you will need to set the editObjectAfterDraw property of the AnnAutomationManager to false like so:

Code:
automationManager.editObjectAfterDraw = false;


Here is the documentation link for this property:

https://www.leadtools.co...editobjectafterdraw.html

and the information about the property:

Quote:
When the value of this property is true (default) new objects drawn on the current active AnnAutomation will be automatically selected (edited).

The following illustrates how EditObjectAfterDraw and EndEditDesignerBeforeDraw work together:

The user clicks on the annotations toolbar and clicks and drags on the container to draw a new object.

When drawing finishes and if the value of EditObjectAfterDraw is true (the default), then this new object becomes selected and their edit designers start. This usually shows the selection and optional rotations thumbs. The user can now click and drag on the object or the thumbs to move, resize or rotate it. If the value of EditObjectAfterDraw is false, then this new object does not become selected automatically. The user has to click again on the object to select it and start editing it.

The user then clicks to start drawing a new object. If the value of EndEditDesignerBeforeDraw is true (the default), then any previously selected objects becomes de-selected regardless of where the user clicks on the container - on any existing object or outside. A new object will always be drawn. If the value of EndEditDesignerBeforeDraw is false, then any selected objects becomes de-selected and the new object will be drawn only if the user starts drawing the object by clicking on the container outside the boundary of any other objects. If the user clicks on a previous object, then it will become selected (if not already) and the operation becomes an edit one, causing the object or its thumbs to move.
Hadi Chami
Developer Support Manager
LEAD Technologies, Inc.

LEAD Logo
 
#3 Posted : Friday, February 24, 2017 9:44:31 AM(UTC)

maneka  
maneka

Groups: Registered
Posts: 17

Thanks: 1 times

Hi

Thank you for the help this issue is now solved

Maneka
 
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-2019, Yet Another Forum.NET
This page was generated in 0.118 seconds.