Making shortcut for the menu that include sub-menues
I have menus with submenues.
I understand how to make a short cut for the submenues, but still I cannot find way to make a shortcut for the menu.
For Instance,
Menu 1
Menu 2
Submenu 2.1
Submenu2.2
In this case, I understand how to make shortcut for menu1 and submenues, but not for Menu2.
Is there any way to make a shortcut for Menu2?
HJ
June 24, 2017 at 12:50 am - Permalink
menu "My functions"
"Menu1/1", Function1()
Submenu "Submenu1"
"Submenu1-1 /S1", Sub1-1()
"Submenu1-2", Sub1-2()
end
End
I would like to add shortcut to "Submenu1" by putting "/2" but it doesn't work
Is there any way to make a shortcut to the submenu?
[quote=HJDrescher]Could you please post a minimal example and OS info (win or mac). I'm not sure whether you are talking about mnemonic keystrokes or accelerators.
HJ[/quote]
June 24, 2017 at 07:26 am - Permalink
As a test I created this code:
And got the result you requested, I think. See Image.
June 24, 2017 at 09:25 am - Permalink
I meat that can I put the short cut for "submenu1" instead of "submenu1-1" or "Submenu1-2"
Thanks!
[quote=hegedus]Hi,
As a test I created this code:
And got the result you requested, I think. See Image.[/quote]
June 24, 2017 at 10:56 am - Permalink
What action are you going to initiate with a shortcut to a submenu?
Andy
June 24, 2017 at 12:20 pm - Permalink
To cite the manual:
Note: The mnemonic keystroke is not supported on Macintosh. For this reason, if you care about cross-platform compatibility, you should not use ampersands in your menu items.
On Macintosh, if you use a single ampersand in a menu item, it does not appear in the menu item. If you use a double-ampersand, it appears as a single ampersand.
@WM: Igor8 ?
HJ
June 24, 2017 at 02:10 pm - Permalink
[quote=hegedus]I am not sure that request makes sense from an user interface perspective. The submenu heading does [not] have a function attached to to execute. It serves as an organizational heading.
What action are you going to initiate with a shortcut to a submenu?
Andy[/quote]
June 25, 2017 at 08:50 pm - Permalink
Thank you so much otherwise I may keep trying to find some way...
[quote=HJDrescher]I guess you want mnemonic keystrokes: 'alt-y', 's' would open the user defined menu and submenu1 on WINDOWS.
To cite the manual:
Note: The mnemonic keystroke is not supported on Macintosh. For this reason, if you care about cross-platform compatibility, you should not use ampersands in your menu items.
On Macintosh, if you use a single ampersand in a menu item, it does not appear in the menu item. If you use a double-ampersand, it appears as a single ampersand.
@WM: Igor8 ?
HJ[/quote]
June 25, 2017 at 08:50 pm - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
June 26, 2017 at 08:44 am - Permalink