Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Option group blues...
Message
De
29/08/2000 20:42:22
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00410538
Message ID:
00410570
Vues:
18
Create a subclass with several buttons, say 6 or 8. Then do a REMOVEOBJECT() in the OptionGroup.Init for those you don't want. Each individual button can be customized in the class. You can't rename the buttons because they are members of the class.

>I subclassed the optiongroup base class to myOptionGroup class. It contains by default two option buttons.
>
>Q1: When I drop myOptionGroup on a form, I can not change the name property of the two buttons in the class. Why is this?
>(Increasing the button count to, let's say, 4, I can change the name property of the 2 added option buttons. Setting button count to 0 in myOptionGroup class will solve the name problem, but then, I can't have any defaults at the class level for the option buttons - because there aren't any.)
>
>Q2: Can I have my own option buttons (not the VFP base class optionbutton) in myOptionGroup class?
>
>Q3: In the myOptionGroup class I set the autosize property of the buttons to TRUE. On a form, I use graphical style for the option buttons, and change the autosize to FALSE - still, running the form the buttons will not retain the size I set manually. Is this a bug?
>
>TIA
>
>dz
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform