Reputation: 11
I made a graphical component which ancestor has to be TGraphiccontrol because I need to paint to the canvas. Now I want to convert this component to an activex control but that seems to be only possible when the component is a descendant from TWincontrol. How do I solve this problem?
Upvotes: 0
Views: 187
Reputation: 27276
It is incorrect that you must only use a TGraphicControl
in order to paint. Base your control on TCustomControl
instead. This provides you with a canvas which you can use the same way, and is inherited from the TWinControl
.
Upvotes: 5