Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keeping the focus in a field
Message
De
03/03/2003 00:51:09
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
 
 
À
02/03/2003 17:46:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00760065
Message ID:
00760250
Vues:
19
>Hi Paul
Thanks for the ideas and suggestions. I am not yet running VFP 8. This is what I did to work around the problem. I set the Forms Keypreview property to .t. In the textbox object I am in I tested for keypress = 27 and if detected I moved to the bottom of the file I was working my way through one record at a time. If the keypress event detected the escape key pressed, it issued a Keyboard "{Enter}" , thus firing the Valid event. The valid event checks for being at the end of the file and if so does some clean up and returns a .t. allowing exit from the textbox. So I sort of combined your original idea with a bit of tweaking. I don't think I am going to spend the time coding the mouse movement sequence. The user will just have to either process the records or press ESC to move on. Thank you for the time you spent.

Regards,
Carmen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform