Table of Contents

TTMSFNCSpinner Class

Spinner control that displays one or more side-by-side scrollable columns for selecting numeric values, dates/times, or custom items.

API unit family: TMSFNCSpinner Inherits from: TTMSFNCCustomSpinner

Syntax

TTMSFNCSpinner = class(TTMSFNCCustomSpinner)

Properties

Name Description
AnimationFactor Speed factor for the scroll animation; higher values animate faster. (inherited from TTMSFNCCustomSpinner)
Appearance Settings for the selected-value highlight bar shown across all columns. (inherited from TTMSFNCCustomSpinner)
BitmapContainer Bitmap container used to resolve named bitmaps for custom-item columns. (inherited from TTMSFNCCustomSpinner)
ColumnAppearance Shared fill, hover, and disabled appearance for all spinner columns. (inherited from TTMSFNCCustomSpinner)
Columns Collection of scrollable columns displayed in the spinner. (inherited from TTMSFNCCustomSpinner)
ReadOnly When True, columns cannot be scrolled by the user. (inherited from TTMSFNCCustomSpinner)
SmoothScrolling When True, scrolling decelerates smoothly after the user releases the column. (inherited from TTMSFNCCustomSpinner)

Methods

Name Description
FocusedColumn Returns the zero-based index of the column that currently has keyboard focus, or -1 if none. (inherited from TTMSFNCCustomSpinner)
InitSample Populates the spinner with sample columns for design-time preview. (inherited from TTMSFNCCustomSpinner)
XYToColumn Returns the zero-based column index at the given pixel coordinates, or -1 if no column is at that position. (inherited from TTMSFNCCustomSpinner)

Events

Name Description
OnAfterDrawColumnBackground Fires after a column background has been drawn. (inherited from TTMSFNCCustomSpinner)
OnAfterDrawColumnContents Fires after a column's scrolling content has been drawn. (inherited from TTMSFNCCustomSpinner)
OnAfterDrawColumnItem Fires after an individual item text in a column has been drawn. (inherited from TTMSFNCCustomSpinner)
OnAfterDrawSelectedLayer Fires after the selected-value highlight layer has been drawn. (inherited from TTMSFNCCustomSpinner)
OnBeforeDrawColumnBackground Fires before a column background is drawn; set ADefaultDraw to False for custom rendering. (inherited from TTMSFNCCustomSpinner)
OnBeforeDrawColumnContents Fires before a column's scrolling content is drawn; set ADefaultDraw to False for custom rendering. (inherited from TTMSFNCCustomSpinner)
OnBeforeDrawColumnItem Fires before an individual item text in a column is drawn; set ADefaultDraw to False for custom rendering. (inherited from TTMSFNCCustomSpinner)
OnBeforeDrawSelectedLayer Fires before the selected-value highlight layer is drawn; set ADefaultDraw to False for custom rendering. (inherited from TTMSFNCCustomSpinner)
OnColumnHint Fires when a hint should be shown for a column. (inherited from TTMSFNCCustomSpinner)
OnSelectedValueChanged Fires when the selected value of any column changes. (inherited from TTMSFNCCustomSpinner)

Used by