Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Option Group question
Message
De
01/02/2007 11:04:19
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/02/2007 07:32:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01191265
Message ID:
01191386
Vues:
11
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform