>>Sorry, the last message was chipped off. Here I go again:
>>
>>I have a menu option defined as follow:
>>
>>LookUp.MPR:
>>LookUp (F2): F2 is defined as the access key, "L" as the hot-key
>>The menu is appending itself at the end of the existing menu
>>There is no submenu for this option
>>
>>In my application, neither ALT-L or F2 will work. When I press on the menu option with the mouse, I get the expected result.
>>
>>As anybody have any ideas why the ALT-L or the F2 keys don't work?
>>--
>>Sylvain Larin
>>
http://www.total.net/~slarin/>
>
>First, do you need to put the option on the menu bar...or append it to
>the existing menu. Both these go against Windows standards. You should
>define "Lookup" as a popup from menu bar option. It also should not append
>to the menu. "Help" should be the last option on the menu.
I want this option to appear only when the focus is on a "QuickFill" text box. I put it up in the GotFocus() and I remove it in the LostFocus().
The reason I put it on the main menu is that I want to show the user that on this field he can press F2 to see a list.
>As for Alt-L, do you have anything else assigned to Alt-L? Maybe a button
>on the form or an ON KEY LABEL?
No, I don't have anything else assigned to ALT-L.
I tried:
ON KEY LABEL F2
and
ON KEY LABEL F2 *
without any success.
>As for F2, hot keys like this don't work for items on the menu bar.
F1 work (for the help), why not F2?
I don't want to use the ON KEY LABEL command to define the F2 key, that's why I'm trying to put up a menu option with that hot-key to compensate. This mimics a feature found in the MaxFrame foundation.