Hi Folks,
I have a StdCtrl.TComboBox, which i have expanded with a custom Property using the Interposing-Class-Technique (at least that's what they called it on Stackoverflow).
It Works!
Now i want to add a StdCtrl.TListBox to my Project, which should also have that custom Property (exactly the same functionality).
I know that i could just start a second unit, copy/paste everything there, and be done with it, but somehow that just smells wrong to me.
So i was thinking: Both Controls have a common ancestor (TWinControl).
Ist it a good idea/possible to expand the ancestor incl. code for functionality?
I'm not really sure how to implement it, since with the Interposing-Technique i need to use the exactly same Type-Name.
Would the compiler recognize the Interposer?