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

TDateEdit.DefaultToday

True to use the current system date when a Date value is not available.

Declaration

Source position: editbtn.pas line 645

published property TDateEdit.DefaultToday : Boolean
  read FDefaultToday
  write FDefaultToday
  default False;

Description

DefaultToday is a Boolean property which indicates if the current system date is used when the Date property has not been assigned or contains an invalid date value. The default value for the property is False.

DefaultToday is used in the ButtonClick method, and causes SysUtils.Date to be used as the date value when set to True. This occurs when the date contains the NullDate value, or when the date is not within the date range allowed for a given platform. It is used when a new value is assigned to the DirectInput property and a valid date has not been assigned to the Date property. It is also used when a new value is assigned to Text and DirectInput has not been enabled for the control.

See also

TDateEdit.ButtonClick

  

Displays a pop-up calendar dialog when the Button for the grouped edit control is clicked.

TDateEdit.DirectInput

  

Indicates if text can be entered directly into the BaseEditor control.

TDateEdit.Text

  

String with the text or caption for the control.

NullDate

  

Represents a TDateTime type without date and time values.


Version 4.0 Generated 2025-05-03 Home