Page 1 of 1

Shortcuts for pulldown menu and other things

Posted: Tue Aug 11, 2009 10:54 pm
by ale870
Hello,
how can I setup a shortcut for MAIN pulldown menu?
For its items I can use "&" but if I use it on main pulldown (menu like FILE, EDIT, VIEW, etc...) symbol "&" has no effect.

One thing more: generally speaking, what's the best technique in RunRev to manage functions shortcut (e.g. CTRL-D to delete something, ALT-X to exit, etc....)

I want these shortcuts work even if a button has the focus, or if a field has focus, etc...

Thank you for your help!

Posted: Tue Aug 11, 2009 11:16 pm
by SparkOut
You should have a look up in the docs for acceleratorKey, acceleratorModifiers and acceleratorText as well as - I feel you're looking for a Windows specific solution here, the mnemonic of a button.

To catch certain key combinations you will probably need to think carefully about where you want to intercept them in the message path and quite possibly put a rawkeyDown handler in the card or stack script, if not a frontscript. If the key combinations are appropriate for the situation then you can handle what is needed, otherwise pass the rawkeyDown message to be taken care of as normal (eg typing a letter in a field). It's hard to be more specific.

Posted: Tue Aug 11, 2009 11:32 pm
by ale870
Thank you, I will check accelerators and frontscript (just to verify).

About Windows... no, I'm creating a cross platform editor with many unusual features (I work on Linux Mint 6 :D ).