how to activate PointerTool after inserting node ?


Author
Message
Balasaheb Sherkar
Balasaheb Sherkar
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)
Group: Forum Members
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


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,

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


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