FMX.Mobile.SettingsProject Sample (Object Pascal)
This is a sample that shows a set of dialogs similar to those used for mobile device settings, using FireMonkey.
Contents
Location
You can find the FireMonkeyMobile LocationDemo sample project at:
- Start | Programs | Appmethod | Samples and then navigate to Object Pascal\Samples\User Interface\Settings Project
- Subversion Repository: http://sourceforge.net/p/Appmethod/code/HEAD/tree/branches/Appmethod_113/Object%20Pascal/Samples/User%20Interface/Settings%20Project
Description
This application uses TChangeTabAction methods and properties to implement actions on TListBoxItems.
How to Use the Sample
- Navigate to the location given above and open SettingsDemo.dproj.
- 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.
See Also
- FireMonkey Application Design
- FireMonkey Application Platform
- iOS Mobile Application Development
- Troubleshooting: Cannot Deploy to the iOS Simulator
- Troubleshooting: Cannot Deploy to the iOS Device
- 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