Sign in Join
FPDoc Onlineexperiment

TDateEdit.Loaded procedure

Member of TDateEditprotectedIn unit EditBtn

Performs actions needed when the component has finished loading in the LCL streaming mechanism.

Declaration

pascal
procedure Loaded; override

Description

Loaded is an overridden method in TDateEdit. The overridden method ensures that the value in Date is re-applied at run-time.

Date defaults to the current system date when Value is a null date and DefaultToday is True. The assignment causes Date to be range-limited to the minimum and maximum values in MinDate and MaxDate (when assigned), or the limits for the Date type. Date is not updated at design-time.

The string representation for the date value is also applied to the Text property. The value in DateOrder determines the date format used for the text value.

Loaded calls the inherited method prior to exit to update the spacing and color for the control.

Modified in version 2.2.4 (e7e585f1) to call the inherited Loaded method on exit instead of on entry. This allows the OnChange handler to be signalled once after both the Date member and Text have been updated.

See also

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