Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hidden yet active Menus
Message
From
28/09/1998 17:09:24
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00136049
Message ID:
00141627
Views:
24
>Argh! I could have sworn I was able to trap a few Alt combinations in a previous test, but I just went back and tried it again after noticing the following line in the VFP help entry for the keypress event: "The KeyPress event does not occur for any combination of keys with the ALT key.". As it states, I could not reproduce what I thought I had done. Perhaps in experimenting I had defined some OKL's for the Alt combos. Oh well, it's getting late and now I'm talking to myself so I'm going to call it a night.
>
>Just for the record, after further experimentation with a hotkey object, I found that some Alt key combinations are passed to the keypress event while others aren't. I haven't quite figured out all the reasons why (menu pads shortcut keys are one). Same goes for Ctrl combinations that are defined as keyboard shortcuts for menu items.

You've got company :)

One thing surprised me - I was trying to trap some ctrl+Fx keys, and the nKeyCode was not the code for the key itself, but the ctrl+Fx keycode instead. Seems to be the nKeyCode complies to the InKey() function keycodes almost all the way, so nShiftAltCtrl modifier is just passed as is, and the nKeyCode is passed modified. This is somewhat different from what I expected - I thought nKeyCode would be passed as is.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform