Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodCode SnippetDelphiFiremonkeyIOSOSXWindows

Build A Custom Button Using TRectangle In Delphi XE6 Firemonkey On Android And IOS

Delphi XE6 Firemonkey Rectangle ButtonDeveloper Antonio Estevez has some sample source code for implementing a TRectangle component as a button in Delphi XE6 Firemonkey (and AppMethod). This technique should run cross platform on Windows, IOS, OSX, and Android. The code uses Mouse Enter, Mouse Leave, Mouse Down, and Mouse up events to change the color of the TRectangle and give it the look of being pressed. TRectangle is a really fast Firemonkey component and you can even apply a bitmap to it using it’s Fill.Bitmap property. Check out the code snippet below:

Head over and check out the full thread on the Embarcadero forum where the code snippet is posted.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts

Significant Update Available For Delphi FireMonkey 10.4.1 On Android, IOS, OSX, Windows, And Linux


Professional SVG Icon Image List For Delphi 10.4 FireMonkey On Windows


Top Tips And Tricks To Speed Up Development With Delphi 10.4 FireMonkey On Android and IOS


TStringList and TFDMemTable Contribute To The Powerhouse That Is Cross Platform Delphi Development In FireMonkey

Sign up for our Newsletter and
stay informed

Leave a Reply