Disable Library Move Tool


Author
Message
Volvick Derose
Volvick Derose
Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)
Group: Forum Members
Posts: 71, Visits: 1
I cannot find a way to do that at runtime. I can disable it at design time, but not at run time.

NLibraryMoveTool myTool = new NLibraryMoveTool();
myTool.Mode = MoveToolMode.Move;

nLibraryTest.Controller.Tools.Remove(myTool);//get an error here

If I am not mistaken, I remember the pointer tool is a combination of the tool selector and tool move. Let me know if am correct in this case.
Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi,

Now it is clear what you are trying to do. To make the library move tool allow only drag and drop (and not allow to move the masters inside the library) use the following piece of code:

 

NLibraryMoveTool libMoveTool = (NLibraryMoveTool)libview.Controller.Tools.GetToolByName(NDWFR.ToolLibraryMove);

libMoveTool.Mode = MoveToolMode.DragDrop;

 



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search