Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to setfocus()?
Message
De
18/08/2004 02:00:31
 
 
À
17/08/2004 10:10:16
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00931180
Message ID:
00933990
Vues:
29
>I've tried this in form's .gotfocus():
>
>this.optiongroup1.Buttons[this.optiongroup1.value].setfocus
>
>and it worked, but in general case this is still bad, because the form may have lost focus when you had any other control having focus, so restoring focus to your form would always return focus to the optiongroup. Ideally, if optiongroup had a .gotfocus event, that would be the best place to put the above command, but it doesn't.
>
>So, the trick is to put the optiongroup into a container, which does have a .gotfocus, and the command to set the focus to the correct optionbutton goes there. Tried, works.

Thanks Dragan, that does work. And how are you going anyway? Wife and daughters all OK?
Regards
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform