Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a Method to a control on the fly
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00405983
Message ID:
00406078
Views:
31
Thanks but the reluctance is in the fact that to create a new class I would have to wait for the full moon, followed by the killing of a cow and then that's just the start!

For this purpose I've just about gotten away using manipulating the interactive & programmatic change events.

Once again thanks.

Mathias

>>I need help. I would like to add extra functionality to a text based control without having to subclass it. I would like to achieve the equivalent of Control.AddProperty() but instead add an Assign_Method to the text control.
>>
>>Thanks
>
>I don't understand the reluctance to subclass the control. Why not just add the method to your textbox class? AFAIK, there is no other way to do what you want unless you create a PRG or VCX with various procedures that you can call from forms and controls.
Mathias Banda

Time is longer than a rope.
Previous
Reply
Map
View

Click here to load this message in the networking platform