Corwin - Tracker Sup wrote:Hi,
You can clear unnecessary shortcuts using the "Customize" dialog (right click on menu -> Customize->Commands).
After that you should export these revised settings, and import them on starting your program.
OK, but HOW can I do that "BY CODE"? Because my customers will not have YOUR User-Interface.
How to Im-/Export a shortcut-List ??? And what is, if you spend a new shortcut in future release? How can I detect this?
--------------
Lzcat - Tracker Supp wrote:Maybe disabling/enabling commands instead of their shortcuts will be more useful?
OK, also a way. But can I make a Loop by code through all Shortcuts? Because I will be sure for future Releases of your AX, that I ONLY activate my allowed shortcuts.
...something like this (pseudo code):
For i = 1 to Commands.Count
If Commands(i).HasShortcut And Commands(i).Name <> "Cut" Then
Commands(i).Enabled = False
End If
Next