Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Option Group question
Message
De
01/02/2007 12:06:07
 
 
À
01/02/2007 09:46:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01191265
Message ID:
01191436
Vues:
8
>>I have an option group on a form with 3 options - say "Apples","Oranges","Lemons". When a user steps into the group using the keyboard the first option always gets focus - even though another option may be the one showing the true value in the radio button. How do I get the focus to land on the option that has the true value shown by the radio button? I can't seem to see any property that allows me to do this.
>>
>>At present a user can step through the option group and accidentally change the selected option to the first radio button.
>>
>>I hope that I have explained the problem clearly enough. (A lot easier to demonstrate than to describe!)
>>
>>Thanks
>>Barry Sutton
>
>If you want to disallow users to use tab to change optiongroup value, then you may reset TabStop property for 'extra' optionbuttons, e.g. you can fire this code after you fill/change optiongroup value:
>
>with thisform.myoptiongroup
>  for each oButton in .buttons
>    if oButton.value=0
>      oButton.tabstop=.f.
>    else
>      oButton.tabstop=.t.
>    endif
>  endfor
>endwith
>
Edward
Thanks for that - a neat trick!
Barry.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform