Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to redefine parent of option buttons in an option gr
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00314846
Message ID:
00314872
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform