LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Double underscore in menu items

Solved!
Go to solution

Hello all,

I've long known the double underscore place before a character in a label or a menu in order to do a Alt-key shortcut. I was convinced this worked on a menu item, for instance __File|__Quit in order to quit with Alt-Q, but unless I'm missing something this does does seem to work. Correct ?

0 Kudos
Message 1 of 4
(2,591 Views)

The accelerator key works for the visible level of the menu, and the ALT key is needed only for the top level. In you  example, the accelerator sequence to call the Quit function should be Alt+F, then Q.

Additionally, you can install an accelerator on the menu item itself, but only with Shift, Ctrl or Shift+Ctrl.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(2,512 Views)
Solution
Accepted by topic author gdargaud

Hello gdargaud, 
no, Alt+underscored_letter works only for the top menu.
Menu items are selected with the simple underscored letter key. (i.e. __File | __Quit -> Alt+F then Q).
Every windows program works this way.
If you want a direct shortcut you have to define manually (usually a Ctrl+key short cut). This is from my current desktop. I opened it with Alt+F, O.

image.png

Carlo A.
Megaris




0 Kudos
Message 3 of 4
(2,491 Views)
  • no, Alt+underscored_letter works only for the top menu.

Okay. I've been using those shortcuts for decades so it's weird I've never noticed before.

0 Kudos
Message 4 of 4
(2,453 Views)