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

# TCustomCalendar.GetCalendarView

Gets the current view for the Calendar.

## Declaration

Source position: calendar.pp line 122

`public function TCustomCalendar.GetCalendarView: TCalendarView;`

## Function result

Current view for the Calendar.

## Description

GetCalendarView is a TCalendarView function used to get the current view for the calendar control. It calls the GetCurrentView class function in the widgetset class instance when its handle has been allocated. It is used in components like TCalendarDialog and TCalendarPopupForm to determine the active view when a Return or Space key is handled.

## See also

TCalendarView |  | Defines the view for a calendar.
TCalendarDialog |  | TCalendarDialog - a popup calendar dialog that allows a date to be selected and returned to the main program.
TCalendarPopupForm |  | Implements a non-modal pop-up form used to select a date from a TCalendar control.