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
Thanks, works fine now
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


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

Still doesn't work.

All that I want, disable the library move tooll at runtime

nLibraryView1.Controller.Tools.DisableTools(new string[] { NDWFR.ToolLibraryMove });

When I do that, it does not allow me to drag and drop

At designtime, I have no problem disable it like

controller>tools>collection>mode>DragDrop

 

 

 


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,

The correct way to disable a tool for a view is the following:

 

view.Controller.Tools.DisableTools(new string[] { NDWFR.ToolSelector });



Best Regards,
Nevron Support Team


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