Tofig Hasanov
Tofig Hasanov

Reputation: 3709

Button in the form of polygon in Delphi 7

I need to make a button in the shape of rotated triangle (or let's say any polygon). Can anyone give any advice?

Upvotes: 1

Views: 674

Answers (1)

Remy Lebeau
Remy Lebeau

Reputation: 597941

Look at the Win32 API CreatePolygonRgn() and SetWindowRgn() functions to create and assign an HRGN object to the Button's HWND handle.

Upvotes: 3

Related Questions