Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Option Group question
Message
From
01/02/2007 12:06:07
 
 
To
01/02/2007 09:46:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01191265
Message ID:
01191436
Views:
9
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform