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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement