Can the menu automatically display shortcuts?
Posted: 2007-06-28, 07:54 UTC
I don't know how many shortcuts and what's the default shortcut for every command.
So, can the menu automatically display shortcuts after the menu text, without additional instruction in the WCMD_ENG.MNU?
For example:
I add the following line in the [Shortcuts] section of WINCMD.INI:
and I add the following lines in the WCMD_ENG.MNU:
Since I set the "Ctrl + F" shortcut for the cm_SearchFor command, so "Ctrl + F" should dispaly after the menu text;
The default internal shortcut of cm_Copy is "F5", and I do not change it, so the "F5" should display after the menu text.
Then the menu display like this:
------------------------
Search... Ctrl + F
Copy F5
------------------------
So, can the menu automatically display shortcuts after the menu text, without additional instruction in the WCMD_ENG.MNU?
For example:
I add the following line in the [Shortcuts] section of WINCMD.INI:
Code: Select all
C+F=cm_SearchFor
Code: Select all
MENUITEM "Search...", cm_SearchFor
MENUITEM "Copy", cm_Copy
The default internal shortcut of cm_Copy is "F5", and I do not change it, so the "F5" should display after the menu text.
Then the menu display like this:
------------------------
Search... Ctrl + F
Copy F5
------------------------