FireMonkey Native Controls

From RAD Studio
Jump to: navigation, search

Go Up to FireMonkey Applications Guide

This topic describes the native controls of FireMonkey.

FireMonkey Native Control Presentation

FireMonkey provides native presentation for certain visual components.

  • Set the ControlType property to Styled in order to have the standard FireMonkey presentation of the control. Styled is the default value of ControlType.
  • Set the ControlType property to Platform to have the native styling of that control.

Supported Platforms

Platforms that support native controls include, iOS, Windows and Android. The value of ControlType property on any other platform does not have any effect.

Available FireMonkey Native Controls

See the platform specific topic for more information:

Visual Changes to Native Controls

When the ControlType property of a visual component is set to Platform, the presentation of this control in the Form Designer changes to indicate that it is a native control and an small phone-like icon appears in the bottom right corner.

See the platform specific topic for more information:

Adding Native Controls to Your Application

To add native controls to your application:

  1. Drop a component that supports native presentation on the form (list of supported controls).
  2. In the Object Inspector Properties, set the ControlType property to Platform. The presentation of the component at design-time changes (see Visual Changes to Native Controls).
  3. Run your application on a supported platform.

Alternatively, you may change the value of ControlType at run time. To select the native presentation for a TEdit control, add the following code to your application:


Edit1.ControlType := TPresentedControl.TControlType.Platform;


Edit1->ControlType = TPresentedControl::TControlType::Platform;

Combining Native Controls With Non-native Controls

We do not recommend that you combine non-native controls with native controls, because the native controls do not support the Z-order of the form: a native control is always on top of other controls on your form. However, there are some non-native controls that you may combine with native controls because they support the Z-order of native controls.

See the platform specific topic for more information:

Advantages of the Native Controls

Some controls support additional functionality when you use them as native controls.

See the platform specific topic for more information:

Limitations of Native Controls

Before using the native controls you should consider the limitations.

See the platform specific topic for more information:


See Also