I found the problem - I need to pass the TRotateButton.Handle to
SetWindowRgn instead of Canvas.Handle!
Thanks again for your help guys!
Tom
> Thanks for the reply, but could you please give me some more
> info on this. I
> have tried using
>
> SetWindowRgn(Canvas.Handle, CreatePolygonRgn(FPoly, 4,
> WINDING), False);
>
> but it hasn't solved the problem. Whenever the
> dimensions/position of the
> TRotateButton are changed, I calculate the new FPoly
> coordinates and adjust
> the control's Top, Left, Width & Height so that the polygon can be
> completely contained within the overall control window. Then
> I make the SetWindowRegion call followed by Refresh.
>
> Any ideas what I'm doing wrong?
>
> Tom
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz