C++ Builder (v3.00) new component

Hi everybody.
I'd like to "edit" the appearance of the standard BUTTON (Tbutton class, I suppose) but I don't know how to inherit everything of it and just change the Paint function...
If there is any other way to do this ,maybe inheriting another component...
The thing I absolutely need for that component are:
-(event) onClick
-(event) onDoubleClick (or onRightClick, if it exists)
-(event) onKeyPress (of course with STD parameters sender, &key, shiftstate)

I need to make a new one because I need to set some variables that aren't in any component of any type...that's why i chose this way to work...

Any help on how to make this kind of component..? (thanks 4 any answer)
Topic archived. No new replies allowed.