Simple visual component with no inherited properties/methods/events.
Posted on 2004-04-08
I've made components before, and never had any real issues, until I decided to make one for a HTML editor I'm currently working on.
What I want is a visual component that has top,left,width and height properties, and is sizable and movable on the form.
I want to add all the other properties, methods and events myself. Is there anything I could define as the ancestor of my component that will give me that? If not, how can I do it? I did try using TWinControl and TControl, but found them both unsuitable - the TControl has redraw problems and both of them have too many properties that I don't want.
Alternatively, is there a way to simply override or hide the inherited properties when creating a component?
Thanks in advance,