Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Esc key with combobox ???
Message
De
31/12/2000 11:18:38
Liam O'Hagan
O'Hagan Programming Ltd
Irlande
 
 
À
30/12/2000 13:44:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00457668
Message ID:
00458192
Vues:
21
Hi Mark,

It appears (from looking at the event tracking log) that ESC is treated differently to other keypresses.

When the form's KeyPreview property is set to .F. and any key (other than ESC) is pressed, it is processed by the active control, however when ESC is pressed it is processed by the active control and then by the form.

I haven't come across this before so maybe someone else will shed some light on this behaviour, if they can. In any case, testing explicitly for the KeyPreview state in the form's KeyPress event will work eg ....
If nKeyCode = 27 and This.KeyPreview Then
    Thisform.Release
Endif
HTH

Liam



>hi again. thanks for reply. this trick works fine for combobox outside grid. but this trick is not working for any combobox inside grid. If you have any idea please give me some hint w asap. Thanks again in advance.
>
>mark
Liam O'Hagan
MCP VFP Desktop Apps
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform