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

AndroidAppmethodCode SnippetDelphiFiremonkeyIOSOSXUtilityWindows

Edit And Store Custom Styles Within A TFrame In Delphi XE5 & XE6 Firemonkey On Android And IOS

Delphi XE5 XE6 Firemonkey Custom Style FramesA developer over on the Embarcadero forum has a tip about using a TFrame object to hold your custom styles in Delphi XE5 & XE6 Firemonkey. The basic idea is that you load up your custom styles into your TFrame and then you create your frame before any of the forms are created in the project file. By doing this you register those custom files with Delphi and that allows you to use them by name just like any other style from a StyleBook. I don’t quite understand the part about creating a custom style but Marco Cantu has a blog post for XE4 where he covers a custom style editor utility and some code to load styles with TStyleManager. There is also the MonkeyStyler utility for creating and editing your own styles. The key part to the forum post is where it explains how to reference the style names from the controls that you want to style. Here is an excerpt from the post:

Head over and read the full forum post about creating custom styles using a TFrame.


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

Related posts

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores


DelphiCon 2020 FireMonkey Sessions Available Starting November 19


Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed


Leave a Reply