Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ESC key with combobox inside grid???
Message
De
30/12/2000 22:26:50
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
ESC key with combobox inside grid???
Divers
Thread ID:
00458168
Message ID:
00458168
Vues:
44
sorry the last message was incomplete so posting again.

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

someone recently suggested me put following code in combobx to solve this problem.

in combobox's gotfocus set form's keypreviw to .f. and in lostfocus set it again to .t.


this works fine only if combobox is not inside grid. if combobox is inside the grid this still behaves same.anyone have idea. please help. thanks in adavnce.



Mark
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform