Converting a VCL Style to a FireMonkey Style
Go Up to Customizing FireMonkey Applications with Styles
Contents
VCL styles vs. FireMonkey styles
VCL styles are raster-based, consisting of bitmaps. Each object in a VCL style is a sub-image of the image assigned to that style. You can change these images using the Bitmap Style Designer.
FireMonkey styles, on the other hand, can use both bitmaps and vectorial shapes such as TEllipse or TRectangle. A FireMonkey style can be entirely created with bitmaps, using TCustomStyleObject and TImage objects. For this reason, a VCL style can be converted to a FireMonkey style.
Creating a VCL style
To create a VCL style, follow the steps provided in Creating a Style using the Bitmap Style Designer.
Converting a VCL style to a FireMonkey style
Just open the VCL style in the Bitmap Style Designer, and save the style as a FireMonkey style (.style
file):
- Select Tools > Bitmap Style Designer.
- In the Bitmap Style Designer, select File > Open and select the VCL style that you want to convert.
- Tip: In the RAD Studio product installation:
- VCL styles are located in
C:\Program Files (x86)\Embarcadero\Studio\19.0\Redist\styles\vcl
. - FireMonkey styles are located in
C:\Program Files (x86)\Embarcadero\Studio\19.0\Redist\styles\Fmx
.
- VCL styles are located in
- Tip: In the RAD Studio product installation:
- Choose File > Save As from the menu.
- Set Save as type to FireMonkey Style (*.style).
- The default file name is Style. If you want to change the file name, specify a different name for the style.
- Click Save.
The FireMonkey file is saved to disk as a .style
file, and the original VCL style file (.vsf
file) remains open in the Bitmap Style Designer.