I'm making a game in Delphi with FireMonkey and I'm trying to make a button with rounded corners using a TRectangle
. It is the play button in the photo below:
Is this possible? How can it be done?
I'm looking for something like the border-radius in CSS, but doesn't seem like there is something like that in Delphi. Or am I wrong? This is what I'm referring to: https://www.w3schools.com/css/css3_borders.asp
Look at the XRadius
and YRadius
properties on the TRectangle
component.
It's at the bottom of the properties: