TTMSFNCSpinnerColumn Class
A single scrollable column in a spinner control, defining the range type, numeric or date/time range, custom items, step size, formatting, font, and width.
API unit family: TMSFNCSpinner
Inherits from: TCollectionItem
Syntax
TTMSFNCSpinnerColumn = class(TCollectionItem)
Properties
Name
Description
CustomItems
Collection of custom items scrolled when RangeType is rtCustom.
Cyclic
When True, scrolling past the last value wraps around to the first.
DateRangeFrom
Start date/time of the range when RangeType is rtDateTime.
DateRangeTo
End date/time of the range when RangeType is rtDateTime.
DateTimeValueFormat
Format string applied to date/time values when displaying them in the column.
Enabled
When False, the column cannot be scrolled by the user.
Font
Font used for unselected items in this column.
Hint
Tooltip text shown when hovering over this column.
RangeFrom
Lower bound of the numeric range when RangeType is rtNumber.
RangeTo
Upper bound of the numeric range when RangeType is rtNumber.
RangeType
Controls what kind of values the column scrolls through.
SelectedCustomIndex
Gets or sets the zero-based index of the selected custom item when RangeType is rtCustom.
SelectedDateTime
Gets or sets the currently selected date/time value when RangeType is rtDateTime.
SelectedFont
Font used for the currently selected item in this column.
SelectedValue
Currently selected numeric value in the column.
Step
Step increment used when scrolling; interpretation depends on StepType.
StepType
Unit of the step increment — numeric, seconds, minutes, hours, days, months, or years.
TextAlign
Horizontal alignment of item text within the column cells.
ValueFormat
Format string applied to numeric values when displaying them in the column.
Visible
When False, the column is hidden.
Width
Pixel width of the column in the spinner.
Methods
Name
Description
GetRangeCount
Returns the total number of scrollable values in the column's range.
GetRangeFrom
Returns the effective lower bound of the column's range.
GetRangeTo
Returns the effective upper bound of the column's range.
GetStep
Returns the effective step size taking the current StepType into account.
IncSteps
Returns the value that is ANr steps ahead of AStartValue.
Next
Scrolls the column forward by one step.
Previous
Scrolls the column backward by one step.
ScrollToValue
Scrolls the column to the specified value, optionally with animation.
StepsFromTo
Returns the number of steps between AStartValue and AEndValue.
Events
Name
Description
OnlyDate
When True, only the date part of a date/time value is displayed and edited.