Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to subclassing option group
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01148773
Message ID:
01148835
Vues:
18
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform