FMX.SettingsProject Sample

From RAD Studio Code Examples
Jump to: navigation, search

This is a sample that shows a set of dialog boxes similar to those used for mobile device settings, using FireMonkey.

Location

You can find the FireMonkeyMobile SettingsDemo sample project at:

  • Start | Programs | Embarcadero RAD Studio Athens | Samples and navigate to:
    • Object Pascal\Multi-Device Samples\User Interface\Settings Project
    • CPP\Multi-Device Samples\User Interface\Settings Project
  • Subversion Repository:
    • You can find Delphi and C++ code samples in GitHub Repositories. Search by name into the samples repositories according to your RAD Studio version.

Description

This application uses TChangeTabAction methods and properties to implement actions on TListBoxItems.

How to Use the Sample

  1. Navigate to the one of the locations given above, and open:
    • Delphi: SettingsDemo.dproj
    • C++: SettingsDemo.cbproj
  2. Press F9 or choose Run > Run.

Files

The sample files are SettingsProjectForm, the main form that constitutes the user interface for the FireMonkeyMobile Settings Project Sample application and SettingsDemo, the project itself.

Classes

FireMonkey TSettingsForm represents the main window of the sample. It contains the following components:

Implementation

  • The FireMonkeyMobile Settings Project Sample application uses the TChangeTabAction method Execute and the Tab property to change the action on the respective tab.
  • The sample also provides an example for the usage of TSwitch.

Uses

See Also