Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabled options within option group
Message
De
21/06/2002 16:36:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00671096
Message ID:
00671239
Vues:
18
Hi ,this is one solution.

Don’t use property ENABLED for option controls.
But the same thing you may have with this trick .

Use property TAG (Free character property) for Enabled control set this property to YES and for disabled to NO .
For option controls In When event of Option control in OptionGroup put this code
RETURN IIF(this.tag =’YES’,.T.,.F.)

Then when you wont to change the enabled state of option control s
With This.optiongroup
.Option1.Tag =’YES’
.Option2.Tag =’NO’
endwith
With this trick colors are free for settings.
This trick on the same way you may use for checkbox control and combobox (dropdownlist) or to create class for this controls with logical MyEnabled property and code in When Event
Return this.myenabled

Aco
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform