Vcl.ComCtrls.TDateTimePicker.CheckEmptyDate
Delphi
procedure CheckEmptyDate; override;
C++
virtual void __fastcall CheckEmptyDate(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TDateTimePicker |
Description
Clears the check box associated with the calendar.
Vcl.ComCtrls.TDateTimePicker.CheckEmptyDate inherits from Vcl.ComCtrls.TCommonCalendar.CheckEmptyDate. All content below this line refers to Vcl.ComCtrls.TCommonCalendar.CheckEmptyDate.
Clears the check box associated with the calendar.
CheckEmptyDate is called automatically when DateTime is assigned a value that represents a time and not a date value (or Date is assigned a value of 0). As implemented in TCommonCalendar, CheckEmptyDate does nothing.
TDateTimePicker overrides CheckEmptyDate to clear the check box associated with the calendar, or raise an EDateTimeError if the ShowCheckbox property is false. This allows TDateTimePicker to represent time values that do not include a date portion. (When a TDateTime value represents a time and not a date, the date portion is 0).