Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Diagram for .NET
»
Changing default properties
Changing default properties
Post Reply
Changing default properties
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Nevron Support
Nevron Support
posted 10 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
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
Reply
Like
0
Richard Dubé
Richard Dubé
posted 10 Years Ago
ANSWER
Topic Details
Group: Forum Members
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.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search