Delphi Fmx Samples May 2026

A simple "Hello World" application demonstrating the basic structure of a Delphi FMX app.

program HelloWorld;
uses
  System.StartUpCopy,
  FMX.Forms,
  FMX.Controls,
  FMX.Types;
begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Form1.Label1.Text := 'Hello World!';
  Application.Run;
end.

Desktop apps are great, but mobile is where FMX flexes its muscles. delphi fmx samples

Why you need it: One of the biggest selling points of FMX is direct access to device hardware. Key sample: CameraDemo – captures photo and video, saves to TPath.GetSharedPicturesPath. Lesson learned: On Android 11+, you must request TPermission.Camera and TPermission.ReadExternalStorage at runtime. The sample includes the permission boilerplate. A simple "Hello World" application demonstrating the basic

To create apps that feel native and modern, study these specific areas: Desktop apps are great, but mobile is where


MyFMXSamples/
├── 01_Basics/
│   ├── HelloWorld/
│   ├── LiveBindingsDemo/
│   └── StylesDemo/
├── 02_Layouts/
│   ├── GridPanelDemo/
│   └── MasterDetailDemo/
├── 03_Media/
│   ├── CameraDemo/
│   ├── VideoPlayerDemo/
│   └── AudioRecorderDemo/
├── 04_Database/
│   ├── SQLiteDemo/
│   └── RESTDemo/
└── 05_3D/
    ├── CubeRotation/
    └── ModelLoader/

| Aspect | What You Learn | |--------|----------------| | Cross-platform patterns | Using $IFDEF MSWINDOWS or TOSVersion to adapt code. | | FMX object life cycle | Creating/destroying forms, controls, and 3D objects. | | Event-driven model | Touch, mouse, keyboard, gesture events. | | Styling vs VCL | FMX uses style books, not native Windows themes. | | Performance tips | Double-buffering, using TBitmap caching, avoiding frequent repaints. | | 3D basics | Cameras, lights, materials, transforms. |


A sample demonstrating the use of TMapView to display a map.

program MapViewSample;
uses
  System.StartUpCopy,
  FMX.Forms,
  FMX.Controls,
  FMX.Types,
  FMX.MapView;
begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Form1.MapView1.MapType := TMapType.Normal;
  Application.Run;
end.

One of FireMonkey's unique strengths is its 3D capabilities.