Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use my optionbutton with optiongroup
Message
From
05/12/2006 10:46:14
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01174874
Message ID:
01174947
Views:
11
All you have to do is set the buttoncount property in the init.

>Hi James
>
>Hmm, the max no. needed. A little ugly but not hideous. I suppose I never thought that way as I assumed VFP would tell me off if I tried to delete a member from a class. But of course, you don't need to - just make 'em invisible or whatever, in .Init(), an resize the opg so that they don't matter.
>
>Anyway, too late now as my class has been around for years, and, to tell you the truth, I haven't been inconvenienced by using std. opbs :-)
>
>Thanks for the idea
>
>Terry
>
>>Hi Terry,
>>
>>Option 1:
>>Set up your class with the max number you would use. In the init of the class you can set the number you need. You won't loose your code if you take away OptionButtons. Ugly, yes but it does work.
>>
>>Option 2: Upgrade <g>.
>>
>>
>>>>Hi Bhavbhuti,
>>>>
>>>>Try MemberClass and MemberClassLibrary properties
>>>>
>>>>Agnes
>>>>
>>>>>Hi all
>>>>>
>>>>>I have put in a VFP OptionGroup on the form. When I increased the button count it used the default VFP OptionButtons, instead I wanted to use my sub-classed OptionButtons. How can I go about this.
>>>>>
>>>>>Please advise.
>>>>>
>>>>>UPDATE: It also seems I can't put my OptionButton inside this container, I cannot paste or drag-drop form the project manager into the VFP OptionGroup
>>>
>>>Just interested, Agnes. I gave up on trying to do what Bhav is some years ago, and made my opg class contain standard opbs. Do you know how you'd do this in VFP7?
>>>
>>>Terry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform