Jump to content

Newbie Q: Menu keyboard shortcuts


Recommended Posts

You guys did such a great job answering my first question

http://forums.lavag.org/Newbie-Q-Writing-t...ols-t13762.html

now on to the second.

Is there a way to define ALT-key keyboard shortcuts on drop-down menus? E.g., have the "F" in "File" underlined and where the File menu drops down when the user presses ALT-F? The "shortcut" field in the Run-Time Menu editor seems to be for CTRL-style keyboard accelerators (e.g. "CTRL-C" for Edit->Copy). And the run-time Insert Menu Item VI doesn't seem to allow either style of keyboard shortcuts to be defined.

Link to comment

I admit that I had to dig through my Intermediate I book for this. Couldn't find it in the book, but it sort of came back to me. When creating your run-time menu, put in an underscore before the letter that you want to be the "shortcut". See below.

post-11268-1239309536.png?width=400

In this case, if I hit "Alt+B" and then "x", my custom "exit" menu will trigger an event. Please notice that even if I didn't have my exit under "blah", the "Alt+B" would not trigger an event. I had to actually click on it to trigger an event.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.