Creating a round or triangular component?

"Richard Bleeker" <[email protected]> Tue, 17 Sep 2002 10:28:49 +0200
Newsgroups gmane.comp.lang.delphi.kylix
Message-ID <018d01c25e24$3f67b530$1d00a8c0@richard>
Mission:        To create a CLX component which is paints itself, but is not neccessarily rectangular.
Functionality:  Only areas of the Canvas which have been painted should define the object bounds.

Established:    I have created a component descended from TGraphicControl (CLX), which in its OnPaint handler, draws an ellipse. 
Problem:        When the user clicks on one of the rectangular Corners of the canvas (where there is _no_ paint), event handlers such as OnMouseDown, OnMouseMove still get fired. Components which are behind this component (eg. TForm) should rather receive these events when the clicked canvas area is unpainted (transparent).

I know this is a big mission, especially as I cannot use WinSDK or the VCL, but perhaps somebody has some suggestions, or has done this before?

Thanks,
Richard


[Non-text portions of this message have been removed]