Hopefully someone knows a better way, but here is what I've found.

You could setup a timer to check for the key presses, but it's usefulness is
limited.  At high period settings, it tends to continue firing even when the
keys are not pressed.  At low settings, the key presses can be ignored.

I used this method to assign F1 to show a help window and it works fine.
When opening a window, you can't see that somewindow.show is called several
times.  There may be other cases where the multiple calls are not a problem.

Depending on your situation you might be able to place a canvas onto a
window and capture the key strokes there.  This use seems limited as well.
When it loses focus, it stops capturing.

Another downside...
Neither of these use the menu item, but you can make a menu item that calls
the same method as the key combination.  You can also show the key
combination in the menu:

MenuItem1.Text = "Move" + Chr(09) + "Ctrl+Enter"

Again, hopefully someone knows a better way.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to