FMX.SettingsProject Sample
This is a sample that shows a set of dialog boxes similar to those used for mobile device settings, using FireMonkey.
Contents
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
- Navigate to the one of the locations given above, and open:
- Delphi: SettingsDemo.dproj
- C++: SettingsDemo.cbproj
- 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:
- Two TToolBars
- A TLabel
- A TTabControl
- Two TTabItems, named TabItem1 and TabItem2
- A TListBox named SettingsList1
- Three TListBoxItems named AccountType, PaymentType, RenewalType
- Two TListBoxGroupHeaders named AccountInfo and SyncSettings
- Three TListBoxItems, named SyncUSB, SyncWifi, SyncCollections
- Three TSwitch
- A TLabel named SettingsDetails
- A TListBox named SettingsList2
- Six TListBoxItems named SelectAcctType, SelectPayment, Business, Personal, CreditCard, Check.
- Two TComboBoxs named AcctCombo and PaymentCombo
- A TListBoxGroupHeader named AcctTypes
- A TBindingsList
- Two TLinkFillControlToProperty
- A TSpeedButton
- A TActionList
- A TChangeTabAction
- A TListBoxItem named SelectRenewal
- A TComboBox named RenewalCombo
- Three TListBoxItem named Monthly, Annually, Quarterly
- A TLinkFillControlToProperty
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
- FMX.ListBox.TListBox
- FMX.ListBox.TListBoxGroupHeader
- FMX.ListBox.TListBoxItem
- FMX.StdCtrls.TToolBar
- FMX.Layouts.TLayout
- FMX.StdCtrls.TSwitch
- FMX.StdCtrls.TLabel
- FMX.StdCtrls.TSpeedButton
- Data.Bind.Components.TBindingsList
- Data.Bind.Components.TLinkFillControlToProperty