Profile Picture

Prevent Ctrl+shift+e menu

Posted By Craig Browder 10 Years Ago
Author
Message
Craig Browder
Question Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 9, Visits: 17
Is there a way to block the menu from popping up when the user pressing Ctrl+shift+e ?

Nevron Support
Posted 10 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: Last Week
Posts: 3,054, Visits: 4,009
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



Craig Browder
Posted 10 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 9, Visits: 17
That worked well, thank you!




Similar Topics


Reading This Topic