Skip to main content

Overview

TeeTree’s FireMonkey (FMX) version enables true cross-platform development, allowing you to create tree diagrams that run on Windows, macOS, iOS, Android, and Linux using a single codebase.

Supported Platforms

The FMX version of TeeTree supports all FireMonkey target platforms:
  • Windows (32-bit and 64-bit)
  • macOS (32-bit, 64-bit, and ARM64)
  • iOS (Simulator and Device, 32-bit and 64-bit)
  • Android (ARM 32-bit and 64-bit)
  • Linux (64-bit)

Installation

Unit References

For FMX applications, include the FMX-specific units:
Notice the FMXTee.Tree unit instead of TeeTree - this is the FireMonkey version.

Component Placement

Adding TTree to FMX forms:
  1. Create a new FireMonkey application
  2. Open the Tool Palette
  3. Find the TeeTree tab
  4. Drag TTree component onto your form
  5. The component will automatically adapt to the target platform

FMX-Specific Features

Cross-Platform Rendering

FMX uses GPU-accelerated rendering on all platforms:
  • Vector graphics with anti-aliasing
  • Hardware acceleration via DirectX, Metal, or OpenGL
  • High DPI support automatic
  • Retina display support on iOS/macOS

FMX-Specific Constants

Creating Your First FMX Tree

Mobile Application

Platform-Specific Adaptations

Touch and Gesture Support

Mobile UI Considerations

Color System

Alpha Channel Support

FMX uses RGBA colors with alpha transparency:

Conditional Compilation

Platform Detection

Printing on FMX

Printing is not available on Android and iOS due to platform limitations.

FMX Styling

Style Books

Apply FMX styles to TeeTree:

Custom FMX Styles

Performance on Mobile

Optimization Tips

Mobile devices have limited resources. Optimize for performance:
  • Limit the number of visible nodes
  • Use virtual mode for large datasets
  • Disable animations if needed
  • Reduce transparency effects

Layout and Scaling

Multi-Resolution Support

Event Handling in FMX

Mouse vs Touch Events

Cross-Platform File I/O

Platform-Independent Paths

Deployment Considerations

iOS Deployment

Android Deployment

macOS App Store

Common FMX Patterns

Responsive Layout

Multi-Platform Dialogs

Advantages of FMX

  • Single codebase for all platforms
  • Modern GPU-accelerated graphics
  • Touch and gesture support built-in
  • Vector graphics with anti-aliasing
  • Automatic DPI scaling
  • Native look and feel on each platform

Limitations

Some features are desktop-only:
  • Printing (Windows/macOS only)
  • Clipboard metafile (Windows only)
  • Some custom cursor types

See Also