[Overview][Classes][Procedures and functions][Index] |
Creates and displays the form for the calendar dialog, and captures the results.
Source position: extdlgs.pas line 219
public function TCalendarDialog.Execute: Boolean; override; |
True if the OK button was used to close the dialog form.
Execute is an overridden method in TCalendarDialog. It creates and configures a new TForm instance displayed for the dialog component. The dialog form includes controls needed to select a date value, and to accept or reject the selected value. This includes:
Values from properties in the class instance are used to configure the dialog form, including:
Methods in the class instance are assigned to the event handlers for the dialog form and its controls, including:
The ShowModal method for the dialog form is called to display the form and capture the return value. The return value is True if the ModalResult value is mrOK (when the OK button was clicked). The return value is False if the Cancel button was clicked or the form was closed using the window decoration.
The date selected using the calendar control is stored when the CalendarChange routine is executed (via TCalendar.OnChange). This causes the OnChange event handler in the class instance to be signalled to store the updated value.
The form is freed prior to exiting from the method.
|
Displays the dialog and captures the result. |
Version 4.0 | Generated 2025-05-03 | Home |