[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Calendar' (#lcl)

TCustomCalendar.OnChange

Event handler signalled when the calendar control has been changed.

Declaration

Source position: calendar.pp line 130

public property TCustomCalendar.OnChange : TNotifyEvent
  read FOnChange
  write FOnChange;

Description

OnChange is a TNotifyEvent property with the event handler signalled when the calendar control is changed. It occurs when a day number is clicked on the calendar grid, and when the visible month is changed on the control. OnChange is signalled from the LMChanged, LMDayChanged, LMMonthChanged, and LMYearChanged methods. The event is signalled after the new date value from the widget has been assigned to the members for the DateTime and Date properties.

Applications can assign an object procedure to the event handler to respond to the change notification.

See also

TCustomCalendar.Date

  

String representation for the date value on the calendar control.

TCustomCalendar.DateTime

  

Native data type used for a date value on the calendar control.

TCustomCalendar.LMChanged

  

Handles the LCL LM_CHANGED message received when the calendar control is updated.

TCustomCalendar.LMYearChanged

  

Handles the LCL LM_YEARCHANGED message received when the year number has been changed on the calendar control.

TCustomCalendar.LMMonthChanged

  

Handles the LCL LM_MONTHCHANGED message received when the month has been changed using the calendar control.

TCustomCalendar.LMDayChanged

  

Handles the LCL LM_DAYCHANGED message received when the day number has been changed on the calendar control.


Version 4.0 Generated 2025-05-03 Home