Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Option Group question
Message
From
01/02/2007 11:04:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/02/2007 07:32:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01191265
Message ID:
01191386
Views:
10
>>>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
>>
>>Barry,
>>Use a container. Put the optiongroup in container.
>>
>>*Container gotfocus
>>WITH this.optFruits
>> .Buttons(max(.Value,1)).SetFocus()
>>endwith
>>
Cetin
>
>Hi Cetin
>I can see what your method is trying to do, but I am having a problem as the reference to .Value refers back to the value of this.optFruits rather than the .Buttons collection maximum value. I can't work out the syntax to get to the maximum value of the .Buttons.value - if you see what I mean?
>Barry

No I don't:)
It is not trying to get maximum value of Buttons. It's just doing a max(currentvalue,1) in case value is 0.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform