Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Learn To Use Styles To Create Visual Stunning VCL And FireMonkey Apps With Delphi/C++ Builder

What is a Style: A set of graphical details that define the look and feel of a VCL application/FireMonkey Application, Similar to a theme in Windows. A style permits you to change the appearance of every part and state of a control. For instance, a scroll bar has the following parts: frame, slider, and the two side buttons for each direction. The side buttons, for example, have the following states: pressed, disabled, hot, normal.

How to apply styles for an VCL Application: To set a style for your VCL application, select the style in Project > Options > Application > Appearance. See Application Appearance for more details. Note: The VCL style changes the appearance of the application in run-time. However, the Form Designer does not show this changes.

Location of Style Files (.vsf Files): The VCL styles that ship with the product are available in C:\Users\Public\Documents\Embarcadero\Studio\21.0\Styles. Use the Vcl.Themes.TStyleManager class to load, register, and select styles or to get, register, and unregister a style engine.

FireMonkey: Uses lightweight GUI controls on top of a cross-platform abstraction, which is implemented for Windows and other platforms. Lightweight controls mean that every pixel is drawn by FireMonkey, no native (heavyweight) controls are used.
FireMonkey controls are arrangements of a tree composed of sub controls, primitive shapes, and brushes, decorated with effects. These compositions are defined as styles, stored in a style book. The individual elements of a style are internally called resources; because that term has several other meanings, the term style-resource is used for clarity. Styles provide a great deal of customizations without sub classing.

The FireMonkey styles that are provided with the product are saved in .Style files located in C:\Program Files (x86)\Embarcadero\Studio\21.0\Redist\styles\Fmx. You can load these styles with FireMonkey Style Designer.

FireMonkey Style Designer: The FireMonkey Style Designer window, in combination with the Structure view and the Object Inspector, helps you create, edit, and test FireMonkey styles.

Bitmap Style Designer for VCL and FireMonkey: The Bitmap Style Designer enables you to:

Watch this video to check Windows 10 look and feel for VCL and FMX.

Windows 10 Look and Feel for VCL and FMX

Exit mobile version