Pickers provide the platform-specific engine giving selection controls with a native view and native behavior under different platforms.
The FMX.Pickers unit declares the IFMXPickerService interface. IFMXPickerService defines the so-called platform service. (See FMX.Platform.TPlatformServices.) Now the FMX.Pickers unit introduces two types of pickers:
- Date-Time pickers of the TCustomDateTimePicker type provide platform-native behavior and view of date-time managing controls.
- List pickers of the TCustomListPicker type provide platform-native behavior and view of drop-down list controls used for the selection of string items.
For example, Windows and MacOS provide the standard calendar control for date selection, but iOS and Android provide specific controls for date and time selection.
Components that need to use the platform-specific behavior for date (and time) selection and for the selection of string items from a drop-down list can use the IFMXPickerService picker service. See the code of FMX.CalendarEdit.Style.TStyledCalendarEdit.DropDown and FMX.ListBox.TCustomComboBox.DropDown for examples.
- FireMonkey Platform Services
- Using Pickers to Provide Platform-Specific Behavior and View of Selection Controls
- Mobile Tutorial: Using a Calendar Component to Pick a Date (iOS and Android)
- Mobile Tutorial: Using Combo Box Components to Pick Items from a List (iOS and Android)
|IFMXPickerService||Platform service to manage system picker controls.|
|TCustomDateTimePicker||The picker for choosing date and/or time.|
|TCustomListPicker||The picker for choosing a string from a list of string items.|
|TCustomPicker||Base class for creating pickers.|
|TDatePickerShowModeHelper||For internal use. TDatePickerShowModeHelper is a record helper that provides fields for a scoped enumeration, the FMX.Pickers.TDatePickerShowMode type.|
|TDropDownKindHelper||For internal use. TDropDownKindHelper is a record helper that provides fields for a scoped enumeration, the FMX.Pickers.TDropDownKind type.|
|TPickerFactoryService||This class implements the methods declared in the IFMXPickerService interface.|
|_di_IFMXPickerService||Represents the DelphiInterface of IFMXPickerService.|
|TDatePickerShowMode||Specifies the display mode of the Date-Time picker.|
|TDropDownKind||Defines whether to use TCustomListPicker pickers providing platform-specific drop-down lists to select string items.|
|TOnDateChanged||The method pointer type used to define date and time changing events for date and time pickers.|
|TOnValueChanged||The method pointer type used to define value-changing events of platform-specific pickers for a string item selection from drop-down list controls.|