Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enter-key won't advance to next textbox, but tab-key wil
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00194219
Message ID:
00194722
Vues:
17
>Craig - well I found my event-key cause.
>
>When I'd moved some code from Form.activate to Form.init one of the lines was a cmdbutton.setfocus()
>
>For whatever reason that then changed the behavior of the enter-key when in textboxes. Don't know where to start with the reasoning, suppose I'd have to look at the order of instantiation in the form.init, maybe the object I was setting focus to didn't exist at that time???
>
>Once again, thanks for taking the time to comment.

I've seen other people say that putting cmdbutton.setfocus in their form's init caused that cmdbutton to become the form's default button, which would cause pressing Enter to fire the button. There you go.

Rich.
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform