FMX.SettingsProject Sample

From Appmethod 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:

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:
    • Object Pascal: 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

Personal tools