Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to subclassing option group
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01148773
Message ID:
01148835
Views:
17
>Hi Jim,
>
>I have create a subclass of the option group in the class designer. When I then add that subclass to the form in the form designer I cant change the names of the option buttons in the group.

Ok, that is by design as the names of the buttons are set in the class definition and cannot be changed in the form. The idea here is that if you wrote code that handles the buttons within the option group in the class making a name change in the form would render all of that code no good.

So how do you get meaningful names for the buttons using a class? For example you would create a optGrpYesNo class for Yes and No. In the class designer you would set the names of the buttons to optYes and optNo and would not then need to change those names.
Previous
Reply
Map
View

Click here to load this message in the networking platform