>   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.

Try having a look at this site.  I realise that it's visual basic, but it's what
I used when making shaped buttons and forms and it uses the relevant API calls.

http://www.spnc.demon.co.uk/index/vb_idx.htm

have a look at:
Getting a round look
Shaping the form

have fun

Tony
--


Tony Sinclair
Holliday Group Limited
Christchurch
New Zealand


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to