From 7ca632d8d9ea6fcfc9aa38677c91df0e13a7efc8 Mon Sep 17 00:00:00 2001 From: dsiders Date: Tue, 18 Jun 2024 02:28:48 +0100 Subject: [PATCH] Docs: DateTimeCtrls/datetimpeicker. Adds and updates TCustomDateTimePicker topics for changes in 8a144ec9. Includes: * TCustomDateTimePicker.DropDownCalendarForm * TCustomDateTimePicker.CalendarForm --- .../datetimectrls/docs/datetimepicker.xml | 75 ++++++++++++++++++- 1 file changed, 72 insertions(+), 3 deletions(-) diff --git a/components/datetimectrls/docs/datetimepicker.xml b/components/datetimectrls/docs/datetimepicker.xml index 9fecb76bf1..332e5e57a3 100644 --- a/components/datetimectrls/docs/datetimepicker.xml +++ b/components/datetimectrls/docs/datetimepicker.xml @@ -944,11 +944,38 @@ Creates and displays the drop-down calendar dialog for the control.

-Called when the drop-down button is clicked, or the Alt+Down cursor key is -pressed for a date or date/time value. +DropDownCalendarForm ensures that the form instance in the +CalendarForm property is allocated, configured, and displayed. +CalendarForm is the form the where the embedded calendar/time picker for the +control is displayed, and its value is assigned in the method when: +

+ +

+The value in CalendarForm is not updated and the form is not displayed at +design-time. +

+

+DropDownCalendarForm is called when the drop-down button is clicked, or the +Alt+Down cursor key is pressed in the edit for the control.

- + + + + + + + @@ -3609,6 +3636,48 @@ When the control receives focus, the selection is always in the first part + + + +

+CalendarForm is a read-only TCustomForm property which +contains the form instance where the embedded calendar/time picker for the +control is displayed. Its value is assigned and the form is displayed in the +DropDownCalendarForm method, and occurs when: +

+
    +
  • +The control does not already have an assigned form instance in CalendarForm. +
  • +
  • +Checked is set to True, or dtpoEnabledIfUnchecked has been +enabled in Options property. +
  • +
  • +The control is not configured as ReadOnly. +
  • +
+

+This occurs at run-time when the drop-down button for the control is clicked, +or when Alt+Down is pressed in the edit control. CalendarForm is not assigned +or displayed at design-time. +

+

+The value assigned to CalendarForm is freed when the form instance in the +property is destroyed. It is automatically freed and recreated when the +drop-down arrow for the control is created. +

+
+ + + + + + + + +
+ Constructor for the class instance.