developer-delphi-fmx-frames

Design reusable Delphi FMX UIs with TFrame and visual inheritance.

Updated Jan 6, 2026
One-click install
npx skills add https://github.com/cslsoftwares/ParamentersORM --skill developer-delphi-fmx-frames
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: developer-delphi-fmx-frames
Source: https://github.com/cslsoftwares/ParamentersORM/tree/main/.cursor/skills/developer-delphi-fmx-frames_V1.0.0
Command: npx skills add https://github.com/cslsoftwares/ParamentersORM --skill developer-delphi-fmx-frames

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables Delphi FMX developers to design reusable TFrame-based UI components that can be embedded, inherited, and swapped at runtime, reducing duplication and improving consistency across screens.

Core Features & Use Cases

  • Create and embed frames in FMX applications to compose complex interfaces from modular pieces.
  • Implement visual inheritance: derive new frames from a base frame to reuse layouts and behaviors across screens.
  • Pass parameters to frames, manage their lifecycle with a safe initialization sequence, and support lazy-loading to optimize performance.

Quick Start

Create a base FMX frame, embed it into a parent container, then derive a specialized frame from it to demonstrate reuse.

Frequently Asked Questions about developer-delphi-fmx-frames

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create reusable FMX UI components in Delphi without duplicating code?

Create reusable FMX UI components by designing a base TFrame and deriving specialized frames through visual inheritance. This modular approach composes complex interfaces without duplicating layout or behavior code across screens.

How does TFrame visual inheritance work in FMX applications?

TFrame visual inheritance in FMX works by deriving new frames from a base frame, allowing derived frames to reuse existing layouts and behaviors. This preserves base components while enabling screen-specific extensions for consistent UI architecture.

What is the best way to manage FMX TFrame lifecycle and initialization safely?

Manage FMX TFrame lifecycle safely by using a structured initialization sequence for parameter passing and data loading, paired with proper destruction via DestruirTudo. This ensures safe memory management and prevents resource leaks.

Can I lazy-load FMX frames into parent containers at runtime?

Yes, you can lazy-load FMX frames into parent containers at runtime. This modular GestorERP pattern optimizes application performance by deferring frame initialization and data loading until the specific frame is actually needed.

Why do my derived FMX frames lose base components when modifying layouts?

Derived FMX frames lose base components when visual inheritance rules are violated or destruction is mishandled. Enforcing proper FMX frame .fmx usage and safe initialization ensures frames preserve base components and support derived modifications.

How do I pass parameters to a Delphi FMX TFrame upon creation?

Pass parameters to a Delphi FMX TFrame by implementing a structured initialization sequence immediately after creation. This ensures the frame receives necessary data for loading before it becomes visible within the parent container.