Multi-Device Application Templates

From RAD Studio
Jump to: navigation, search

Go Up to File Menu


File > New > Multi-Device Application - Delphi > <template name>
File > New > Multi-Device Application - C++Builder > <template name>

Creates the framework for one of the available pre-set types of multi-device applications, and opens the Form Designer, displaying the base form (FMX.Forms.TForm). Your new multi-device application is configured by default with all the supported target platforms. See Multi-Device Application.

A multi-device application template is a predefined multi-device application, a project containing forms preconfigured with components. You can use these templates as a starting point when you create a new multi-device application, so that you do not have to start your application "from scratch". The multi-device application templates include Blank Application, 3D Application, Header/Footer, and so forth.

The multi-device application templates are self-documenting. To display a short description of a template, move your mouse onto a template in the Multi-Device Application wizard.

Creating a New Multi-Device Application from a Template

Templates are not generated dynamically in memory, but are copied from disk. Unlike regular projects such as Blank Application or 3D Application, with templates you must choose a location to save your new application.

After you select a template in the Multi-Device Application wizard, the Browse for Folder dialog box appears. The projects folder, C:\Users\<user>\Documents\Embarcadero\Studio\Projects, is selected by default. Select Make New Folder to create a new folder for your project, give your new folder a name, and select OK to save your new project.

After the application is open in the Projects Window, you might want to rename the project and the form file (using the Rename command, available in the context menu) instead of using the default names assigned by the wizard. For example, if you select the Tabbed template, the project is named TabbedApplication , the source code file is named TabbedTemplate.pas, and the form file is named TabbedTemplate.fmx.

Templates

The Multi-Device Application wizard allows you to quickly create a multi-device application based on one of the following templates:

Template Name Description

Blank Application

Creates an empty multi-device application.

3D Application

Creates a blank FireMonkey 3D multi-device application.

Header/Footer

Consists of a Header/Toolbar and a Footer/Toolbar. This template serves as a good starting point for your multi-device 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.

See Also