I'm developing Delphi Firemonkey mobile application. I want to make a rounded button in Firemonkey. How can i do this without using 3rd party components?
Asked
Active
Viewed 3,897 times
2 Answers
9
Use TCornerButton.
This represents a button with customizable corners.
Use the Corners property to choose the corners to be customized and the CornerType, XRadius, and YRadius properties to customize the corners.

Duns
- 418
- 2
- 15
-
This is not working in android, Its woking only on windows. Any idea how to curve the corners for android fmx – iambasiljoy Feb 19 '22 at 09:10
8
There are a lot of ways to do rounded buttons in FMX. You can use some different components for making buttons like TRectangle
.
Personally I use and suggest you to use TRectangle
too.
- Put a
TRectangle
to your FMX Form. - Set your Rectangle1's
Height
andWidth
values to70
(for e.g.) - Change
XRadius
andYRadius
values to35
(it depends on height-width values)
If you want to make more satisfying button, you should change
Fill
andStroke
properties.
for e.g.
- Set
Fill.Color
is#FF0288D1
(to use Hax color code, add 2 FF to first digit) - Set
Fill.Kind
isSolid
If you don't want to use Stroke
(Border for Button) Set Stroke.Kind
to None
.
Also you can add
TLabel
orTImage
component into your Rectangle1 component and be sure that you setAlign
property well.

Abdullah Ilgaz
- 719
- 1
- 17
- 39