Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabled options within option group
Message
From
21/06/2002 16:36:44
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00671096
Message ID:
00671239
Views:
17
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
Previous
Reply
Map
View

Click here to load this message in the networking platform