FMX.Calendar.TCalendar.OnDateSelected

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnDateSelected;

C++

__property OnDateSelected;

Properties

Type Visibility Source Unit Parent
event published
FMX.Calendar.pas
FMX.Calendar.hpp
FMX.Calendar TCalendar

Description

Occurs when the day is modified.

Write an OnDateSelected event handler to respond to the change of the day from the TCalendar's current date. OnDateSelected occurs only for an explicit day change.

OnDateSelected will not occur when the month or year is modified.

For example, OnDateSelected will not occur if the date is changed from October 17 to November 17. Although, for some special cases, increasing the month or year will result in changing the day (for example, from October 31 increasing the month by one will lead to November 30), OnDateSelected will not be triggered.

Note: The difference between OnDateSelected and OnChange is that OnChange occurs at any modification made to the TCalendar's date, while OnDateSelected occurs only when the day is modified.

See Also