Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't acces the menu option
Message
From
04/10/1997 22:08:18
 
 
To
03/10/1997 22:04:25
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00053071
Message ID:
00053290
Views:
22
>>>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.


You should use the Status Bar Text to indicate that they can press F2...not the menu.
You should then make a quick menu or add an option to a popup menu from the menu bar.
Look at the standard View Menu in VFP when everything is closed. That's they way
you should do it with a menu pad.

F1 does not get assigned to the Help Pad on the menu bar, but is
reserved for context sensitive help. This is the way Windows works.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform