[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ExtDlgs' (#lcl)

TCalendarDialog

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TCalendarDialog - a popup calendar dialog that allows a date to be selected and returned to the main program

Declaration

Source position: extdlgs.pas line 202

type TCalendarDialog = class(TCommonDialog)

  class procedure WSRegisterClass; override;

  

WSRegisterClass - Register this Class for the current Widget Set

protected

  procedure GetNewDate();

  

GetNewDate - programmatic simulation of OnClick event, which transfers the selected dae to the calling program

  procedure CalendarDblClick();

  

CalendarDblClick - method for handling doubleclick on the calendar

public

  constructor Create(); override;

  

  function Execute; override;

  

A public method causing the dialog box to appear, offer the relevant choices to the user and act upon the choice

published

  property Date: TDateTime; [rw]

  

The selected Date, for return to the main program

  property OnDayChanged: TNotifyEvent; [rw]

  

OnDayChanged - event handler when a different day is selected

  property DisplaySettings: TDisplaySettings; [rw]

  

DisplaySettings - the user-selected settings determining the appearance of the display

  property HelpContext: THelpContext; [rw]

  

HelpContext - an index to the context-dependent help message for this dialog

  property OnMonthChanged: TNotifyEvent; [rw]

  

OnMonthChanged - event handler when a different month is selected

  property OnYearChanged: TNotifyEvent; [rw]

  

OnYearChanged - event handler when a different year is selected

  property DialogPosition: TPosition; [rw]

  

DialogPosition - position to display the dialog - by default in the centre of the main form

  property DialogTitle: TCaption; [rws]

  

DialogTitle - caption for the calendar dialog

  property OKCaption: TCaption; [rw]

  

OKCaption - caption for the OK button

  property CancelCaption: TCaption; [rw]

  

CancelCaption - caption for the Cancel button

end;

Inheritance

TCalendarDialog

  

TCalendarDialog - a popup calendar dialog that allows a date to be selected and returned to the main program

|

TCommonDialog

  

TCommonDialog : the base type from which other dialogs are derived

|

TLCLComponent

  

TLCLComponent - base class for LCL components

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent

|

TObject

The latest version of this document can be found at lazarus-ccr.sourceforge.net.