Show: Delphi C++
Display Preferences

VCL Metropolis UI Application

From RAD Studio XE3
Jump to: navigation, search

Go Up to File Menu

File > New > Other > C++Builder Projects > VCL Metropolis UI Application

Contents

File > New > Other > Delphi Projects > VCL Metropolis UI Application

Creates the framework for a VCL Metropolis UI application and includes styled controls that are compatible with the Windows 8 user interface.

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

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

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

  • 32-bit Windows
  • 64-bit Windows


Uses (Delphi)

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

Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs;

Includes (C++)

For a C++ VCL Metropolis UI application, the unit .h file includes the following:

#ifndef UnitnameH
#define UnitnameH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>

The project .cpp file contains:

 #include <vcl.h>
 #pragma hdrstop
 #include <tchar.h>

The unit .cpp file includes the following:

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

See Also

Personal tools
Previous Versions
In other languages