Simple FireMonkey Program - Delphi-fmx Typing CST Test
Loading…
Simple FireMonkey Program — Delphi-fmx Code
A simple FireMonkey program showing a form with a button that displays 'Hello World' when clicked.
# delphi_fmx/demo.dpr
program HelloWorldFMX;
uses
FMX.Forms,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
# Unit1.pas
unit Unit1;
interface
uses
FMX.Forms, FMX.StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
end;
implementation
{$R *.fmx}
procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessage('Hello World');
end;
end.Delphi-fmx Language Guide
Delphi FireMonkey (FMX) is a cross-platform GUI framework for Delphi and C++Builder, allowing developers to create native applications for Windows, macOS, iOS, and Android from a single codebase. FMX supports hardware-accelerated graphics, high-DPI scaling, and rich multimedia capabilities.
Primary Use Cases
- ▸Cross-platform desktop applications
- ▸Mobile apps for iOS and Android
- ▸Multimedia and graphics-rich tools
- ▸Data visualization dashboards
- ▸Native GUI prototypes and business apps
Notable Features
- ▸Cross-platform GUI components
- ▸Vector-based GPU-accelerated rendering
- ▸High-DPI and multi-touch support
- ▸Integration with FireMonkey Styles
- ▸Platform-specific services access
Origin & Creator
Developed by Embarcadero Technologies as part of Delphi and C++Builder IDEs.
Industrial Note
FMX is widely used for cross-platform business applications, visualization tools, and interactive media apps requiring native performance across multiple operating systems.