Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with KeyPress event of a form
Message
De
30/11/1998 07:25:54
 
 
À
30/11/1998 04:43:15
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00162222
Message ID:
00162356
Vues:
34
>>>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform