Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with KeyPress event of a form
Message
From
30/11/1998 07:25:54
 
 
To
30/11/1998 04:43:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00162222
Message ID:
00162356
Views:
40
>>>>I am developing an application where it has become neccasary to fall into a loop and process keypress events from the active form and process click events from the buttons on the form. I am doing this by falling into a do while loop and calling "do events". The click events from the buttons get processed but the keypress event on the form (and it does have keypress preview on) never fires. Anyone know why ?
>>>When form.keypreview is on, form.keypress fires first and then the keypress of control that has focus.
>>>Cetin
>>
>>But why doesn't the code in the form's keypress event fire ?
>>
>>Bruce
>Keypress fires, but there are cases where keypress doesn't fire :
>- An ALT+key combination
>- A key combination that's set as a menu shortcut (ie: Ctrl+C).
>- A key combination reserved by windows (ie: Ctrl+ESC)
>Cetin

Cetin,

In this case the keypress truly doesn't fire at all, or at least this seems to be the case. The information above is usefull none the less, thank you for your comments.

Bruce.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform