TDateEdit.OnAcceptDate property
Event handler signalled to accept or reject a new date value selected using the calendar dialog for the control.
Declaration
property OnAcceptDate: TAcceptDateEvent read FOnAcceptDAte write FOnAcceptDate;Description
OnAcceptDate is a
TAcceptDateEvent property with the
event handler signalled to accept or reject a new value for the Date
property. The handler routine can perform actions to validate or update the
TDateTime and Boolean arguments.
OnAcceptDate is signalled (when assigned) when the pop-up calendar dialog is displayed for the grouped edit control. The handler routine can update the value in the date argument if its value is not in an acceptable range. If the Boolean argument is True on exit from the handler, the date argument is stored to the Date property. Otherwise, the new date/time value is discarded.
An exception raised during execution of the pop-up calendar dialog is handled in the class instance; MessageDlg is called to display the exception message.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
