Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change focus order on form?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00853156
Message ID:
00856110
Vues:
10
>>[Another of those questions that I should already know the answer to.]
>>
>>If I put Text_Box_A on a form and activate the form, the focus will go to that control.
>>
>>If I put Text_Box_B on the same form and activate the form, the focus will STILL go to Text_Box_A.
>>
>>Now what if I want the focus to go first to Text_Box_B. How can I change the order?
>>
>>I suspect the order to receive focus is the same as the order I see in the drop down list at the top of the Properties Window in the Form Designer.
>>


Tracy: >Change the Tab Order.

Thanks, Tracy. You are correct.

It took me a while to see this because there is quite a bit of code in the old Visual FoxExpress foundation that effects the order of focus. When I create a simple form with just two text boxes and a command button I could see that you are correct.

Which ever (enabled) control that has the lowest value of TabIndex gets the focus when the form first gets focus.

I see that TabIndex does not have to be 1. Which ever value is lowest gets focus.

I had speculated:

>>I suspect the order to receive focus is the same as the order I see in the drop down list at the top of the Properties Window in the Form Designer.

This is definitely wrong.

Thanks for responding.

Peter
Peter Robinson ** Rodes Design ** Virginia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform