FMX.Gui3d Sample

From RAD Studio XE2 Code Examples
(Redirected from Gui3d Sample)
Jump to: navigation, search

This sample illustrates how to create a basic graphical user interface (GUI) using a FireMonkey 3D animation.

Contents

Location

You can find the gui3d sample project at:

Description

This application uses a button, a panel, and an animation indicator on a TLayer3D and animates it to create a 3D effect.

How to Use the Sample

  1. Navigate to Start > Programs > Embarcadero RAD Studio XE2 > Samples and open gui3d.dproj.
  2. Press F9 or choose Run > Run. To make the TLayer3D rotate around an axis, press the Flip button.

Classes

FireMonkey 3D Gui represents the main window of the sample. It contains the following components:

Implementation

  • The TAniIndicator, the TButton, and the TPanel are subordinated to the TLayer3D. The TPanel contains a TLabel holding technical information about the implementation.
  • Additional to the TLayer3D, the main form contains a TStyleBook object and a TRectAnimation.
  • When the user presses the Flip button, the layer rotates, creating a 3D effect. The rotation axis is established as being the greater of the vertical or the horizontal axis of the form.

Uses

See Also

Personal tools
Previous Versions