Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FormSet Tabbing
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00342394
Message ID:
00343113
Vues:
27
>Hi Nick,
>
>Thanks for all your responses! On this one though I have an additional question. I tried your setFocus() work around and it works great except for one thing. If the last control is a button and I put the code THISFORM.FirstControl.SetFocus() in its lostFocus method then click on that button at run time I set focus to the first control instead of invoking the click method of that buttom. What's the best way to handle this if I absolutle have to keep this button as the last tabbed control of that form?
>
>Thanks again,
>Craig

I don't see why click on the button will not execute teh Click() code and set the focus to the first control if you have this.parent.text1.Setfocus() in button.Lostfocus(). (Actually I just tested it with a formset and button.LostFocus() and Click() did what they supposed to).
Nadya is right, you may put this.parent.text1.Setfocus() into button.Click() event after your Click code, if you want to set focus to the first control again right after you clicked on the button. But you also need to keep this.parent.text1.Setfocus() line in button.LostFocus() too in case you just tab off the button without clicking it or pressing Enter on it.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform