[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Smallest date value that can entered or selected using the calendar control.
Source position: calendar.pp line 129
public property TCustomCalendar.MinDate : TDateTime |
MinDate is a TDateTime property which contains the smallest date value that can be stored or selected using the calendar control.
MinDate and MaxDate are used to range check the date value for the control, and to avoid the exception raised when an invalid date is provided. They are also used at run-time to determine the date values that can be displayed and selected using the native calendar control.
The default value for MinDate is an empty TDateTime value (0.0), and indicates that the lower limit has not been assigned. Setting a new value for the property causes the TDateTime value to be validated. The new value in MinDate must in the range defined by the RTL MinDateTime and MaxDateTime constants.
When MinDate and MaxDate contain non-zero date/time values that are at least one day apart, the value in DateTime must in the range represented by the properties. When MinDate and MaxDate are not assigned, the RTL MinDateTime and MaxDateTime constants are used to range limit the value in DateTime. An EInvalidDate exception is raised when the date value is not valid for the data type, or not within the required range.
Remark: | MinDate and MaxDate are not supported on all platforms. The values may not be available or enforced in some widgetset implementations; GTK2 and GTK3 do not use the values. |
Introduced in LCL 2.3, and available in LCL versions 3.0 and higher.
|
Largest date value that can entered or selected using the calendar control. |
|
|
Native data type used for a date value on the calendar control. |
|
|
Handles the LCL LM_CHANGED message received when the calendar control is updated. |
Version 4.0 | Generated 2025-05-03 | Home |