FireMonkey Mobile Application Templates

From Appmethod Topics
Jump to: navigation, search

Go Up to File Menu


File > New > FireMonkey Mobile Application - Object Pascal > <template name>
File > New > FireMonkey Mobile Application - C++ > <template name>

Creates the framework for one of the available pre-set types of FireMonkey mobile applications, and opens the FireMonkey Mobile Form Designer, displaying the base form (FMX.Forms.TForm).

Wizard

Here is the FireMonkey Mobile Application wizard, showing the available FireMonkey mobile application templates:

FireMonkey Mobile Application WizardRev3.png

Templates

The FireMonkey Mobile Application wizard allows you to quickly create a mobile application based on one of the following templates:

Template Name Description

Blank Application

Creates an empty FireMonkey mobile application.

3D Application

Creates a blank FireMonkey 3D mobile application. Also see 3D FireMonkey Application.

Header/Footer

Consists of a Header/Toolbar and a Footer/Toolbar. This template serves as a good starting point for your mobile application.

Header/Footer with Navigation

Consists of a Header/Toolbar and Footer/Toolbar with a TabControl with two TabItems for navigation. You can easily add more tabs to your app.

Phone Master-Detail

Contains a TabControl with two TabItems, optimized for a Phone device. The first tab displays the data in the master list, and the second tab displays the detail information. The ListView component provides various styling options through the ItemAppearance property and has been bound to sample data.

Tabbed

Consists of a Header/Toolbar and a TabControl with four TabItems. You can easily add more tabs to your app.

Tabbed with Navigation

Consists of a Header/ToolBar and a TabControl with four TabItems. The first TabItem contains a nested TabControl, which in turn contains two child TabItems.

Tablet Master-Detail

Contains two Layouts, optimized for display on a tablet device. The left TLayout contains the master list, and the right TLayout contains the detail information. The ListView component provides various styling options through the ItemAppearance property and has been bound to sample data.

For every FireMonkey mobile application, the form file has the extension .fmx (instead of .dfm, the extension used for a VCL form file, which is Windows-only).

You can set the target platform for a FireMonkey mobile application to be any of the following:

  • Android (connected device or emulator, supported for both Object Pascal and C++)
  • iOS Device (connected to the Mac by USB cable, supported for both Object Pascal and C++)
  • iOS Simulator (running on the Mac, supported for Object Pascal but not for C++)

Uses (Object Pascal)

For a Object Pascal Blank FireMonkey mobile application, the uses section of the .pas file contains the following units (including unit scope names):

uses
  System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
  FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs;

The Uses clauses of applications created from different templates would contain different units.

Includes (C++)

For a C++ Blank FireMonkey mobile application, the .h file includes the following units:

#include <System.Classes.hpp>
#include <FMX.Controls.hpp>
#include <FMX.Forms.hpp>

The #include statements of applications created from different templates would contain different units.

See Also