Table of Contents

TTMSFNCAnalogTimeSelector Class

Analog clock face that allows the user to select a time by dragging the hour and minute hands.

API unit family: TMSFNCAnalogTimeSelector Inherits from: TTMSFNCCustomAnalogTimeSelector

Syntax

TTMSFNCAnalogTimeSelector = class(TTMSFNCCustomAnalogTimeSelector)

Properties

Name Description
Appearance Detailed appearance settings for the clock face, hands, and tick marks. (inherited from TTMSFNCCustomAnalogTimeSelector)
FollowMouse When True, the selected time follows the mouse cursor during dragging. (inherited from TTMSFNCCustomAnalogTimeSelector)
GlobalFont Global font settings applied to all text on the clock face. (inherited from TTMSFNCCustomAnalogTimeSelector)
Settings Behavior settings: auto-update mode, UTC offset, and read-only. (inherited from TTMSFNCCustomAnalogTimeSelector)
Style Predefined color theme applied to the clock face. (inherited from TTMSFNCCustomAnalogTimeSelector)
Time Currently selected time value. (inherited from TTMSFNCCustomAnalogTimeSelector)

Methods

Name Description
Initialize Applies the active Style preset to all appearance properties. (inherited from TTMSFNCCustomAnalogTimeSelector)
XYToHour Returns the hour (0–11) corresponding to the given pixel coordinates on the clock face. (inherited from TTMSFNCCustomAnalogTimeSelector)
XYToMinute Returns the minute (0–59) corresponding to the given pixel coordinates on the clock face. (inherited from TTMSFNCCustomAnalogTimeSelector)

Events

Name Description
OnAfterDrawAMPM Fires after the AM/PM indicator has been drawn. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnAfterDrawBackground Fires after the clock face background has been drawn. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnAfterDrawCenterPoint Fires after the center pivot point has been drawn. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnAfterDrawHourPointer Fires after the hour hand has been drawn. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnAfterDrawMinutePointer Fires after the minute hand has been drawn. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnAfterDrawNumber Fires after each hour numeral has been drawn. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnAfterDrawSecondPointer Fires after the second hand has been drawn. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnAfterDrawTickMark Fires after the tick marks have been drawn. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnBeforeDrawAMPM Fires before the AM/PM indicator is drawn; set ADefaultDraw to False for custom rendering. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnBeforeDrawBackground Fires before the clock face background is drawn; set ADefaultDraw to False for custom rendering. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnBeforeDrawCenterPoint Fires before the center pivot point is drawn; set ADefaultDraw to False for custom rendering. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnBeforeDrawHourPointer Fires before the hour hand is drawn; set ADefaultDraw to False for custom rendering. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnBeforeDrawMinutePointer Fires before the minute hand is drawn; set ADefaultDraw to False for custom rendering. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnBeforeDrawNumber Fires before each hour numeral is drawn; set ADefaultDraw to False for custom rendering. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnBeforeDrawSecondPointer Fires before the second hand is drawn; set ADefaultDraw to False for custom rendering. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnBeforeDrawTickMark Fires before the tick marks are drawn; set ADefaultDraw to False for custom rendering. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnChanged Fires when the selected time changes. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnHourChanged Fires when the user drags the hour hand to a new position. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnMinuteChanged Fires when the user drags the minute hand to a new position. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnSecondChanged Fires each second while Settings.Auto is True. (inherited from TTMSFNCCustomAnalogTimeSelector)
OnTimeChanged Fires each time the displayed time changes for any reason. (inherited from TTMSFNCCustomAnalogTimeSelector)

Used by