Nevron Forum

how to activate PointerTool after inserting node ?

https://www.nevron.com/Forum/Topic3830.aspx

By Balasaheb Sherkar 1 - Friday, July 16, 2010

nDrawingView.Controller.Tools.SingleEnableTool(NDWFR.ToolCreateConnector);

NCreateConnectorTool tool = nDrawingView.Controller.Tools.GetToolByName(NDWFR.ToolCreateConnector) as NCreateConnectorTool;

tool.ConnectorType = ConnectorType.DynamicHV;

 

using above code i am activating ConnectorTool. and then insert a connector, now how to disable that connector tool?

and activate default PointerTool. so i can add another nodes

By Nevron Support - Friday, July 16, 2010

Hi,

To restore the default set of the tools you can use the following code:

 

string[] toolNames = new string[] {

      NDWFR.ToolCreateGuideline,

      NDWFR.ToolHandle,

      NDWFR.ToolMove,

      NDWFR.ToolSelector,

      NDWFR.ToolContextMenu,

      NDWFR.ToolKeyboard,

      NDWFR.ToolInplaceEdit,

      NDWFR.ToolMouseEventDelegator

};

 

view.Controller.Tools.SingleEnableTools(toolNames);