Sign in Join
FPDoc Onlineexperiment

TDateEdit.SetDirectInput procedure

Member of TDateEditprotectedIn unit EditBtn

Sets the value in the DirectInput property.

Declaration

pascal
procedure SetDirectInput(AValue: Boolean); override

Arguments

AValue

New value for the property.

Description

SetDirectInput is overridden in TDateEdit to synchronize the value from the Text property to the Date property when the property value in DirectInput is changed. The OnCustomDate event handler is signalled (when assigned) to handle a custom date format or value in Text. DateOrder is used to determine the order of the date component values in Text. When DateOrder is doNone, the format setting in DefaultFormatSettings or DateFormat is used. An implementation routine is used to parse the value in Text if cannot be converted using TryStrToDate or ParseDate.

Date is set to the value in NullDate if Text is not successfully converted to a TDateTime value.

Date may contain an uninitialized value at design-time.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.