Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Esc key with combobox ???
Message
De
29/12/2000 04:53:32
Liam O'Hagan
O'Hagan Programming Ltd
Irlande
 
 
À
28/12/2000 23:40:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00457668
Message ID:
00457691
Vues:
24
Hi Mark,

In the ComboBox's GotFocus event set the form's KeyPreview property to .F. and set it back to .T. in the ComboBox's LostFocus event.

Regards,

Liam



>Hi all. I have posted following problem yesterday but haven't got any satisfactory reply yet. can anyone please help?
>
>I close my form when user hits "esc" key. but because of that i have following problem.
>i.e. use clicks on combobox , which will populate drop down list . and then if user hits "esc" it closes the whole form. but instead it should close the dropdown and return focus to combobox. (which is combobox's default behaviour also)
>
>For your knowledge , I have kept the form's Keypreview property .T. I also have property called "lreleaseonEsc" . I have following code in form's keypress event.
>
>If Thisform.lReleaseOnEsc and nKeyCode = 27
>thisform.releaseform() &&check for unsaved data before closing form
>endif
>
>Please let me know if anyone has idea what to do to solve problem?
>
>Thanks in advance
>
>Mark
Liam O'Hagan
MCP VFP Desktop Apps
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform