Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to redefine parent of option buttons in an option gr
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00314846
Message ID:
00314869
Vues:
16
Well -- I just tried this and it didn't work the way I would have hoped. First of all, after increasing the buttons in my option group class, I could not open any forms where I already increased the size of the option group (the added members shared the same name). I had to rename the new object items 3-5 in my option group names to something other than the default (Option3, Option4, Option5).

After I got the form to open, I saw the revised option group classes -- having 5 options. I thought I would be able to revise the buttoncount property to get rid of the undesired buttons. But that gives me an error and it won't let me do it. What does that method in Visual Maxframe do? Does it check a user defined property for "Live" buttons and hide (make invisible) the rest?




>The way it's done in Visual Maxframe, which I use, is that the custom option group class has 10 buttons, each with the revised code. There is a method called when initializing the option group which checks to see how many buttons you want 'live'. They handle grids the same way.
>
>HTH
>Barbara
>
>>Problem: When I increase the number of buttons in an subclassed option group (after dropping it on a form), the new option buttons are based on the VFP base class. Hence my font and other misc. settings are based on the VFP optionbutton base class -- not my subclassed and revised optionbutton class.
>>
>>How do I redefine the parent of the optionbuttons in my subclassed option group. I figured out how to redefine the parent of a class (e.g a form, textbox, label, etc) -- but cannot figure out how to redefine the objects within a class.
>>
>>Thanks
Ken Russell
Mechanicsville, Virginia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform