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

# TDateEdit.Loaded

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

## Declaration

Source position: editbtn.pas line 630

`protected procedure TDateEdit.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.

## Version info

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

TDateEdit.Date |  | Contains the TDateTime value for the control.
TDateEdit.DateOrder |  | Controls the display order for Year, Month, and Day parts of the Date value.
TDateEdit.DateFormat |  | Specifies the format string used for the date value in the control.
TDateEdit.DefaultToday |  | True to use the current system date when a Date value is not available.
TDateEdit.Text |  | String with the text or caption for the control.
TDateEdit.MinDate |  | Smallest date value allowed in the date edit control.
TDateEdit.MaxDate |  | Largest date value allowed in the date edit control.
TCustomAbstractGroupedEdit.Loaded |  | Performs actions when the control has finished loading in the LCL streaming mechanism.
TCustomAbstractGroupedEdit.UpdateSpacing |  | Updates border spacing in BaseEditor for the Layout and visibility of the Buddy control.
TCustomAbstractGroupedEdit.Color |  | Background color for the BaseEditor on the control.