Profile Picture

Changing default properties

Posted By Richard Dubé 6 Years Ago
Author
Message
Richard Dubé
Posted 6 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 Month
Posts: 6, Visits: 51
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 6 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)

Group: Forum Members
Last Active: 1 days ago @ 7:47 AM
Posts: 2,945, Visits: 3,303
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