Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Diagram for .NET
»
Prevent Ctrl+shift+e menu
Prevent Ctrl+shift+e menu
Post Reply
Prevent Ctrl+shift+e menu
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Craig Browder
Craig Browder
posted 11 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 9,
Visits: 17
Is there a way to block the menu from popping up when the user pressing Ctrl+shift+e ?
Reply
Like
0
Nevron Support
Nevron Support
posted 11 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hi Craig,
To disable the shortcut that shows the "Customize CommandBars" dialog, you should set the
Shortcut
property of the diagram command bars manager to null. You can also remove the "Customize..." menu item from the "Tools" menu if you want. The following piece of code preforms these actions:
NDiagramCommandBarsManager manager;
...
// Disable the "Ctrl + Shift + E" shortcut
manager.Shortcut = null;
// Remove the "Customize" command from the menu, too
NDiagramCommandCollection commands = manager.Commander.Commands;
NDiagramCommand customizeCommand = commands.GetCommandFromId((int)DiagramCommand.Customize);
commands.Remove(customizeCommand);
Best Regards,
Nevron Support Team
Reply
Like
0
Craig Browder
Craig Browder
posted 11 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 9,
Visits: 17
That worked well, thank you!
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