Выбрать страницу

Delphi — Fmx Samples

// Touch-based audio mixer with real-time effects TTouchMixer = class procedure OnTouch(Point: TPoint; TouchID: Integer); procedure ApplyEffect(EffectType: TAudioEffect; Value: Single); end;

for i := 0 to 63 do // 64 bars for spectrum visualization begin Bar := TCube.Create(Viewport3D); Bar.Parent := Viewport3D;

An essential sample demonstrating how to break free from standard text lists. It teaches developers how to dynamically bind images, badges, and toggle switches inside individual list items. 4. Graphics and 3D Effects

Beyond the local directory installed with Delphi, the global Delphi community actively maintains outstanding repositories: delphi fmx samples

From a sample to a real app:

Delphi’s framework is the powerhouse behind some of the most versatile cross-platform applications today. Whether you’re targeting Windows, macOS, iOS, Android, or Linux, the best way to master FMX is by diving into high-quality code samples.

In recent years, the library has become a staple for FMX developers. It’s now integrated into the latest versions of RAD Studio. Graphics and 3D Effects Beyond the local directory

$IFDEF ANDROID PermissionsService.RequestPermissions(['android.permission.CAMERA']); $ENDIF

FMX's core strength is "write once, compile anywhere." To manage different UI paradigms (e.g., desktop vs. mobile), you can use a technique where your single FMX project conditionally creates and displays a different main form based on the platform being targeted. The FMX.Forms sample is a great starting point, demonstrating a simpler version of this concept for orientation changes.

procedure TAudioSpectrumAnalyzer.ButtonOpenClick(Sender: TObject); begin if OpenDialog.Execute then begin MediaPlayer.FileName := OpenDialog.FileName; ButtonPlay.Enabled := True; end; end; It’s now integrated into the latest versions of RAD Studio

The most reliable starting point is the official collection of demos provided by Embarcadero. These are updated for each major release, such as the RAD Studio 12 Demos on GitHub.

which include six different projects demonstrating custom materials and shaders. 4. Game Development & Snippets If you’re interested in the "fun" side of coding, the Delphi FMX Game Snippets repository offers bite-sized logic for game mechanics.

Отправьте запрос на обратный звонок

Попросите эксперта по Microsoft сервисам связаться с вами.

 

You have Successfully Subscribed!