Unit 'CalendarPopup' Package
[Overview][Types][Classes][Procedures and functions][Index] [#lcl]

ShowCalendarPopup

Creates, configures, and displays a TCalendarPopupForm instance.

Declaration

Source position: calendarpopup.pas line 49

procedure ShowCalendarPopup(

  const APosition: TPoint;

  ADate: TDateTime;

  const CalendarDisplaySettings: TDisplaySettings;

  const OnReturnDate: TReturnDateEvent;

  const OnShowHide: TNotifyEvent = Nil;

  ACaller: TControl = Nil

);

Arguments

APosition

  

Coordinates where the pop-up calendar form is displayed.

ADate

  

Initial date displayed in the Calendar for the form.

CalendarDisplaySettings

  

Display settings applied to the Calendar control.

OnReturnDate

  

Event handler signalled when a new date value is selected.

OnShowHide

  

Event handler signalled when the pop-up form is shown or hidden.

ACaller

  

The control which creates the pop-up and captures its return value.

Description

ShowCalendarPopup is a procedure used to create, configure, and display a TCalendarPopupForm instance. ShowCalendarPopup stores arguments to the routine in properties for the pop-up calendar form, and calls its Initialize method to configure the Calendar control.

ShowCalendarPopup calls the Show in the form to make it visible, and calls KeepInView to ensure that the form is fully visible on the current monitor.

See also

TCalendarPopupForm

  

Implements a non-modal pop-up form used to select a date from a TCalendar control.

TReturnDateEvent

  

Specifies an event handler signalled when a date is selected on a pop-up calendar form.

TDisplaySettings

  

Set type for TDisplaySetting values.