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?
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.
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.
TRectangle to your FMX Form.Height and Width values to 70 (for e.g.)
XRadius and YRadius values to 35 (it depends on height-width values)
If you want to make more satisfying button, you should change
FillandStrokeproperties.
for e.g.
Fill.Color is #FF0288D1 (to use Hax color code, add 2 FF to first digit)
Fill.Kind is Solid
If you don't want to use Stroke (Border for Button) Set Stroke.Kind to None.
Also you can add
TLabelorTImagecomponent into your Rectangle1 component and be sure that you setAlignproperty well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With