Hello,
I want to remove certain shortcuts (for example, CTRL + N) when starting the application.
Unfortunately I did not find an example.
How can I remove this shortcut? Can you please send me a code example.
Thanks
AteBe
removing certain shortcuts SOLVED
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- Site Admin
- Posts: 17949
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
Re: removing certain shortcuts
Hello AteBe,
It would be better to disable a command completely - that way the user will not be able to access it neither with a key combination nor through the UI (and you still have access to perform the operation if needed via code).
Regards,
Stefan
It would be better to disable a command completely - that way the user will not be able to access it neither with a key combination nor through the UI (and you still have access to perform the operation if needed via code).
Regards,
Stefan
-
- User
- Posts: 63
- Joined: Thu Dec 06, 2018 7:02 am
Re: removing certain shortcuts
Hello Stefan,
I have already successfully removed the menu item cmd.newDocBlank with the following code.
Nevertheless, when I use the shortcut CTRL + N, the following pop-up appears.
How can I prevent this?
AteBe
I have already successfully removed the menu item cmd.newDocBlank with the following code.
Code: Select all
Object o = getInst().GetExtension("UIX");
Pointer ptr = ((Unknown) o).getPointer();
IUIX_Inst in = new IUIX_Inst(ptr);
IUIX_Cmd menu = in.CmdManager().Cmds().Find(menuId);
if (menu != null)
menu.Hidden(hideMenu);
How can I prevent this?
AteBe
You do not have the required permissions to view the files attached to this post.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: removing certain shortcuts
Hello AteBe,
You should put the command as Offline - then the user won't be able to use it.
Cheers,
Alex
You should put the command as Offline - then the user won't be able to use it.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 63
- Joined: Thu Dec 06, 2018 7:02 am
Re: removing certain shortcuts SOLVED
Now it works.
Thank you
Thank you
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: removing certain shortcuts
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ