FireMonkey Metropolis UI Application

From RAD Studio
Jump to: navigation, search

Go Up to File Menu


File > New > Other > Delphi Projects > FireMonkey Metropolis UI Application
File > New > Other > C++Builder Projects > FireMonkey Metropolis UI Application

Creates the framework for a FireMonkey application in a Metropolis UI style and includes styled controls that are compatible with Metropolis UI.

The FireMonkey Metropolis UI Application wizard presents the following template or layout choices:

  • Blank Metropolis UI Application
  • Grid Metropolis UI Application
  • Split pane Metropolis UI Application

After you select a Metropolis UI layout and press Return in the wizard, the Form Designer displays the base FireMonkey form (FMX.Forms.TForm) displayed as a predesigned template. For example, captions in a FireMonkey Metro form use the Segoe UI font, which is the default font used by all Windows 8 applications. For a FireMonkey Metropolis UI application, the form file has the extension .fmx.

You can set the target platform for a FireMonkey Metropolis UI application to be either of the following:

  • 32-bit Windows
  • 64-bit Windows

Note: You cannot set macOS as the target platform for a Metropolis UI application.


Uses (Delphi)

For a Delphi FireMonkey Metropolis UI application, the uses section of the .pas file contains the following units (including unit scope names):

System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.Layouts, FMX.Objects, FMX.ListBox, FMX.Ani, FMX.Gestures;

Includes (C++)

For a C++ FireMonkey Metropolis UI application, the header file of the unit includes the following:

#ifndef UnitnameH
#define UnitnameH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <FMX.Controls.hpp>
#include <FMX.Forms.hpp>
#include <FMX.Layouts.hpp>
#include <FMX.ListBox.hpp>
#include <FMX.Types.hpp>
#include <FMX.Gestures.hpp>
#include <FMX.Ani.hpp>

The project .cpp file contains:

 #include <fmx.h>
 #pragma hdrstop
 #include <System.UITypes.hpp>
 #include "projectname.h"
 #include "unitname.h"

The unit .cpp file includes the following:

 #include <fmx.h>
 #pragma hdrstop
 #include "Unitname.h"

See Also