Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6SP5 - SetFocus to the first user control text, butt
Message
 
À
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:
00792057
Vues:
125
You mean that I should do the code in the init(), but the code in itself is it okay?

>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 >
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform