Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6SP5 - SetFocus to the first user control text, butt
Message
De
22/05/2003 11:57:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00790342
Message ID:
00791679
Vues:
33
Bhavdhuti,

To me, it makes more sense to loop through the controls one time when the form initializes, and store a reference to the object with the lowest tabIndex into a custom property of the form. Then, to set focus, all you do is:
thisform.oFirstControl.setfocus()  && hypothetical form property...
>Here is my version. Note the STEP -1 and Conditional check in PageFrame only if there are no controls on the form.
>
< snip >
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform