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:
00314872
Vues:
14
Ken,

You can substitute the objects at runtime. If it's purely for visual effect then what I do is simply propogate those properties from the parent Init. ie my cOptionGroup.Init is:

* propogate container BackStyle to option buttons
with this
   .SetAll( "BackStyle", .BackStyle )

   if ( ! .Enabled )      && 11-Oct-98 handle disabled initial state
      .Enable( .Enabled )
   endif
endwith
>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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform