Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing OptionButton
Message
From
05/10/1998 10:30:38
 
 
To
05/10/1998 09:29:26
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00143846
Message ID:
00143875
Views:
21
>Am trying to add an OptionGroup to my class library and want to incorporate my own properties & methods with the associated OptionButtons.
>
>However the OptionButton is not one of those available for subclassing in the Class Browser.
>
>The ButtonCount of the OptionGroup will vary each time I add my new class to a form. Will I have to create the OptionGroup class with the maximum number of Buttons forseen and then change the ButtonCount property to a lower number ? Or is there a better way ?
>
>- Werner


I subclassed the optionbuttongroup with 10 buttons. I added an nButtonCount property that contains the number of buttons I want. In the Init, I do a RemoveObject for anybutton I don't need. It is a bit ugly at design time because all the buttons are visible, but it works great. BTW, I did the same thing with pagesframes.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform