Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcut keys in menus
Message
From
18/11/2005 12:29:03
 
 
To
17/11/2005 18:58:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01068891
Message ID:
01070299
Views:
17
The only other thing I could think of is that you've got the form's .KeyPreview property set to .T. and you've got code in the .KeyPress() that's overriding those keys (NODEFAULT). Or maybe it's on a single control's .Keypress().

Another possibility is since you're running in the IDE, those particular keys are being sucked up by a hotkey for a menu.



>Well, yes, this is happening when I've brought up a form in which I run Do MyMenu.MPR (I forget the extension) and I'w waiting at a READ EVENTS.
>
>So, I changed the PRG temporarily not to stop at READ EVENTS, and found that Function Keys F2, F3, F4, and F5 yielded results -1, -2, -3, and -4, which look correct to me.
>
>>That's usually an indication that some program is still running and you're stuck at a READ EVENTS. Try using the program menu and choose "Cancel" from there. Then try the Command Window again.
>>
>>
>>>I have not been trying it in the EXE, only IDE.
>>>
>>>I can indeed get to the command window. However, any time I press [Enter] there it's ignored.
>>>
>>>>Wait a minute, I must be missing something. Are you ONLY having this problem in an .EXE, or are you having it in the IDE, too?
>>>>
>>>>If you're in the IDE, you should be able to get to the Command Window to try it. If you're in an .EXE, then yes, there is no Command Window.
>>>>
>>>>
>>>>
>>>>
>>>>>Yup, I do .... although I can't get to the command window,
>>>>>
>>>>>>Ok, how about if you do ?INKEY(0) from the Command Window? Do you see the proper codes that correspond to the help for INKEY()?
>>>>>>
>>>>>>>No, that neither.
>>>>>>>
>>>>>>>Makes me wonder what strange things I've done ...
>>>>>>>
>>>>>>>>>no, that tain't it.
>>>>>>>>>
>>>>>>>>>I note that if I have "ON KEY Label" statements, the function keys work; if I comment out those lines, I can't get the function keys to work.
>>>>>>>>>
>>>>>>>>>>>Bernard --
>>>>>>>>>>>
>>>>>>>>>>>Since none of my keyboard shortcuts are working, I tried your #2 first. I put "clear macros" immediately before DO MyMenu.MPR. No changee; function keys still have no effect.
>>>>>>>>>>>
>>>>>>>>>>>Any other suggestions?
>>>>>>>>>>
>>>>>>>>>>You don't have one of those keyboards with that stupid "F-lock" key, do you? If there was ever anybody that should be tortured, it was the perpetrator of that!
>>>>>>>>
>>>>>>>>How about if you do PUSH KEY CLEAR?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform