Table of Contents

TTMSFNCCustomCalendar Class

Base class for the TMS FNC Calendar control; displays a monthly grid with header, footer, day names, week numbers, date selection, event badges, and configurable appearance.

API unit family: TMSFNCCalendar Inherits from: TTMSFNCCustomControl Implements: ITMSFNCBitmapContainer, ITMSFNCAppearanceGlobalFont

Syntax

TTMSFNCCustomCalendar = class(TTMSFNCCustomControl, ITMSFNCBitmapContainer, ITMSFNCAppearanceGlobalFont)

Properties

Name Description
BadgeSize Gets or sets the badge size in pixels.
CurrentDate Gets or sets the currently focused date.
Date Gets or sets the displayed calendar date.
Day Gets or sets the displayed day.
FocusedDate Gets or sets the focused date.
MonthsPopup Gets the popup used for month selection.
SelectedDates Gets the selected date collection.
YearsPopup Gets the popup used for year selection.

Methods

Name Description
ColAtX Returns the calendar column at the specified horizontal coordinate.
CurrentDay Returns the current day value.
CurrentMonth Returns the current month value.
CurrentYear Returns the current year value.
DateToCol Returns the calendar column for the specified date.
DateToRow Returns the calendar row for the specified date.
InitSample Initializes the calendar with sample data.
NextDate Navigates to the next date.
NextMonth Returns the next month value.
NextYear Returns the next year value.
PreviousDate Navigates to the previous date.
PreviousMonth Returns the previous month value.
PreviousYear Returns the previous year value.
RowAtY Returns the calendar row at the specified vertical coordinate.
SelectADate Selects the specified date.
SelectDate Selects the specified date.
SelectDateIfAvailable Selects the specified date when it is inside the available date range.
SelectEvent Selects the event on the specified date.
SelectMultiDates Selects the specified date range.
SelectedDate Returns the selected date.
UpdateControlAfterResize Updates calendar layout after the control is resized.
XYToDate Returns the date at the specified calendar coordinates.

Events

Name Description
OnChange Occurs when the calendar value changes.