On checking the code in office there is something starnge going on.
This is the code generated from GenMenu:
DEFINE POPUP filex MARGIN RELATIVE SHADOW COLOR SCHEME 4
DEFINE BAR 1 OF file PROMPT "Preferences..."
DEFINE BAR 2 OF file PROMPT "Daily Mail" ;
KEY F3, "F3"
---
---
DEFINE BAR 7 OF filex PROMPT "Exit" ;
KEY ALT+X, "ALT+X" ;
MESSAGE "Exit this application"
---
---
DEFINE BAR _MWI_COLOR OF window PROMPT "Cycle" ;
KEY CTRL+F1, "Ctrl+F1" ;
MESSAGE "Cycles through all open windows"
However neither in PREVIEW mode nor on running the code can I see the F3 shortcut nor the CTRL+F1. It is there in the MPR and in the Menu files since I can see it on editing. But when I preview or actually RUN the menu there is no F3. The ALT+X etc or any key using ALT comes up but not F3.
Any ideas if this is due to some VFP setting?
I am running VFP8Sp1
>Thanks Barbara. I actually created it just now at home and it displays Ok. But at work it does not. I will open the MPR and check what is in it.
>
>
>
>>>Hi
>>>
>>>I have a menu with my app. I have assigned hotkeys to certain menu options by going clicking on the Options button of the item which opens the Prompt Options window.
>>>
>>>Here in the KeyLabel field I press ALT+F5 and that is inserted as a hot key.
>>>
>>>And I can also assign F12 to another menu option.
>>>
>>>However on running the menu the ALT+F5 appears but NOT the F12 next to the menu.
>>>
>>>Is this correct? What's the use of assigning such a key when it is hidden?
>>>
>>>Is this a bug?
>>
>>I just tried this in VFP 8 and it showed the hot keys just fine. Here's the contents of the MPR. Compare it to yours to see where the difference is.
>>
>>DEFINE POPUP mainpad MARGIN RELATIVE SHADOW COLOR SCHEME 4
>>DEFINE BAR 1 OF mainpad PROMPT "alt+F5 option" ;
>> KEY ALT+F5, "ALT+F5"
>>DEFINE BAR 2 OF mainpad PROMPT "F12 option" ;
>> KEY F12, "F12"
>>