FMX.TimePicker Sample

From RAD Studio Code Examples
Jump to: navigation, search

This sample demonstrates how to use the TTimeEdit component in FireMonkey.

Location

You can find the TimePicker sample project at:

Description

This code snippet shows you how to use the TTimeEdit component to invoke the native time picker at runtime, select times from it and process them for use in your own applications.

How to Use the Sample

  1. Navigate to the location given above.
  2. Open the sample application project file:
    • Delphi: TimePicker.dproj
    • C++: TimePicker.cbproj
  3. Press F9 or choose Run > Run.

Classes

The main form contains a TListBox with 2 TListBoxItems, the first one containing a TTimeEdit component that allows selecting the time. The main form also contains a TToolBar and a TLabel.

Files

The project has one source file, uMain.pas, which contains the class for the main form.

Implementation

Uses

See Also