Profile Picture

Disable Library Move Tool

Posted By Volvick Derose 14 Years Ago
Author
Message
Volvick Derose
Posted 14 Years Ago
View Quick Profile
Forum Guru

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
Last Active: 12 Years Ago
Posts: 71, Visits: 1
Thanks, works fine now

Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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
Posted 14 Years Ago
View Quick Profile
Forum Guru

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
Last Active: 12 Years Ago
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
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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
Posted 14 Years Ago
View Quick Profile
Forum Guru

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
Last Active: 12 Years Ago
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.



Similar Topics


Reading This Topic