Show: Delphi C++
Display Preferences

FMX.Pickers

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also

Package fmx240.bpl

Classes

EFeatureError
IFMXPickerServicePlatform service to manage system picker controls.
TCustomDateTimePickerThe picker for choosing date and/or time.
TCustomListPickerThe picker for choosing a string from a list of string items.
TCustomPickerBase class for creating pickers.
TDatePickerShowModeHelperFor internal use. TDatePickerShowModeHelper is a record helper that provides fields for a scoped enumeration, the FMX.Pickers.TDatePickerShowMode type.
TDropDownKindHelperFor internal use. TDropDownKindHelper is a record helper that provides fields for a scoped enumeration, the FMX.Pickers.TDropDownKind type.
TPickerFactoryServiceThis class implements the methods declared in the IFMXPickerService interface.

Types

_di_IFMXPickerServiceRepresents the DelphiInterface of IFMXPickerService.
TDatePickerShowModeSpecifies the display mode of the Date-Time picker.
TDropDownKindDefines whether to use TCustomListPicker pickers providing platform-specific drop-down lists to select string items.
TOnDateChangedThe method pointer type used to define date and time changing events for date and time pickers.
TOnValueChangedThe method pointer type used to define value-changing events of platform-specific pickers for a string item selection from drop-down list controls.
Personal tools
In Other Languages
Previous Versions
Assistance