TCustomCalendar.LMChanged procedure
Handles the LCL LM_CHANGED message received when the calendar control is updated.
Declaration
procedure LMChanged(var Message: TLMessage); messageArguments
Message | Message handled in the method. |
Description
LMChanged ensures that event handlers are signalled (when
assigned) when the value in DateTime is updated for the calendar control is
changed. It retrieves the new date value from the widgetset class instance,
and compares it to the existing value in DateTime. DecodeDateTime is used to
get the year, month, and day component values compared in the method. The new
value for DateTime is stored prior to comparing the values.
When the date or one of its component values has been changed, the corresponding event handlers are signalled (when assigned) in the following order:
- OnYearChanged
- OnMonthChanged
- OnDayChanged
- OnChange
An application can assign object procedures to the event handlers to respond to the change notifications.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
