Profile Picture

Changing default properties

Posted By Richard Dubé 9 Years Ago
Author
Message
Richard Dubé
Posted 9 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 7, Visits: 85
Hi,

I need to change default properties of a tool in DiagramCommandBarsManager.

Did i have to recreate  the tool or i can change it in others way ?

Thanks.

Nevron Support
Posted 9 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: 6 days ago @ 4:39 AM
Posts: 3,054, Visits: 4,018
Hi,

You can get a tool by name using the GetToolByName method of the drawing view's controller and the NDWFR (abbreviated from NDiagram WinForms Resources) static class which contains constants for tool names. For example, the following piece of code changes the inplace edit tool mouse event from the default left button double click to middle button mouse down:


NInplaceEditTool inplaceEditTool = (NInplaceEditTool)view.Controller.Tools.GetToolByName(NDWFR.ToolInplaceEdit);
inplaceEditTool.InplaceEditMouseEvent = MouseEvent.MiddleButtonDown;



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic