Z
Zytan
I want to extend an existing class (a standard control), by making
more member functions, to improve the ease of its use. *I don't want
to make my own control, or add new functionality.* I just want to
improve the *interface* for existing functionality.
So, instead of doing this:
MyUnit.MyFunction(Control, ...)
I want:
Control.MyFunction(...)
So, I could inherit, but I doubt the above would work. I'd have to
actually make them the NEW control. Again, I don't want a NEW control
with NEW functionality. I just want to improve the interface to
controls that already exist. And it's ugly to have to make my own
unit and with my own function that has to accept the control as a
parameter each time...
Any ideas?
Zytan
more member functions, to improve the ease of its use. *I don't want
to make my own control, or add new functionality.* I just want to
improve the *interface* for existing functionality.
So, instead of doing this:
MyUnit.MyFunction(Control, ...)
I want:
Control.MyFunction(...)
So, I could inherit, but I doubt the above would work. I'd have to
actually make them the NEW control. Again, I don't want a NEW control
with NEW functionality. I just want to improve the interface to
controls that already exist. And it's ugly to have to make my own
unit and with my own function that has to accept the control as a
parameter each time...
Any ideas?
Zytan