Creating a Styled FireMonkey Component by Extending an Existing Component
Go Up to FireMonkey Components Guide
In this tutorial, you create a FireMonkey styled component (TClockLabel, extended from TLabel) that shows the current date and time.
Here are the steps to follow:
- Step 1 - Create a Component Using the New Component Wizard
- Step 2 - Implement a Property to Specify the Format
- Step 3 - Using TTimer to Refresh TClockLabel Every Second
- Step 4 - Test the FMX Styled Component
The TClockLabel component that is created in this tutorial is used in the next tutorial, Creating a Component Editor and a Property Editor for FireMonkey Components.