Using the Calendar Picker
Go Up to VCL
TCalendarPicker provides a date selector drop-down menu for applications. TCalendarPicker fully supports VCL styling for Windows 10 and previous versions of Windows.
With the TCalendarPicker control, you can select a single date from a popup calendar that resembles the TCalendarView UI.
Click the TCalendarPicker control to open the calendar.
TCalendarPicker has most of the same functionalities and settings the TCalendarView component has.
To modify the look-and-feel of the TCalendarPicker control and the calendar it displays, you can use the same settings described in the Using the Calendar View page, except for the SelectionMode property, which is always set to Single, preventing the user to select multiple dates from the calendar.
The properties you can modify are the following:
- Switching between views
- Changing styles
- Handling events
- Customizing the calendar header
- Setting colors
- Configuring year settings
- Setting the first day of week
Note: The Changing styles procedure applies the selected VCL Style to both the drop-down menu and the calendar pop-up.