Group: Forum Members
Last Active: 14 Years Ago
Posts: 6,
Visits: 1
|
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
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
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);
Best Regards, Nevron Support Team
|