Sign in Join
FPDoc Onlineexperiment

TCalendarDialog class

In unit ExtDlgs

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

Declaration

pascal
TCalendarDialog = class(TExtCommonDialog)

Inheritance

  1. TCalendarDialog
  2. TExtCommonDialog
  3. TCommonDialog
  4. TLCLComponent
  5. TComponent
  6. TPersistent
  7. TObject

Description

TCalendarDialog is a TExtCommonDialog descendant which implements a calendar dialog used to select a date from a TCalendar control. It provides a Date property that contains the date used when selecting a date using the Calendar control displayed in the dialog.

TCalendarDialog creates and configures a TForm instance that is displayed in the Execute method for the dialog. The form uses the Title, DialogPosition, DisplaySettings, and Date properties assigned in the class. A new TCalendar control is created for the form, and stored in the Calendar property. Methods which implement the event handlers for the calendar control are also assigned. The form instance is displayed modally, and the modal result is captured in the UserChoice property. Date is updated when a calendar date is selected while the form is active.

See also

Properties

LeftpublicContains the left coordinate for the dialog.
ToppublicContains the top coordinate for the dialog.
DatepublishedThe selected Date for the calendar dialog.
DisplaySettingspublishedThe user-specified settings determining the appearance of the calendar on the dialog.
FirstDayOfWeekpublishedIndicates the day of the week used in the first column for the calendar control on the dialog.
OKCaptionpublishedCaption displayed on the OK button.
CancelCaptionpublishedCaption displayed on the Cancel button for the calendar dialog form.

Methods

WSRegisterClassprotectedRegisters this component class with the current WidgetSet.
GetNewDateprotectedGets the date value from the Calendar on the dialog form.
CalendarDblClickprotectedImplements the event handler signalled for a double click on the calendar control in the dialog.
DefaultTitleprotectedGets the default value for the Title property used as the Caption for the calendar dialog form.
CreatepublicConstructor for the class instance.
ExecutepublicCreates and displays the form for the calendar dialog, and captures the results.

Events

OnDayChangedpublishedEvent handler signalled when the day number in Date has been changed.
OnMonthChangedpublishedEvent handler signalled when a month number in Date has been changed.
OnYearChangedpublishedEvent handler signalled when the year number in Date has been changed.
OnChangepublishedEvent handler signalled when the value in Date has been changed.

Inherited

From TExtCommonDialog (9)

Destroy DialogPosition DlgForm GetHeight GetLeft GetTop GetWidth SetLeft SetTop

From TCommonDialog (20)

AttachTo Close DoCanClose DoClose DoExecute DoShow Handle HandleAllocated Height HelpContext OnCanClose OnClose OnDialogResult OnShow ResetShowCloseFlags SetHeight SetWidth Title UserChoice Width

From TLCLComponent (7)

DecLCLRefCount GetWSComponentClass IncLCLRefCount LCLRefCount NewInstance RemoveAllHandlersOfObject WidgetSetClass

From TComponent (74)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (36)

AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.