Table of Contents

TTMSFNCBloxSelectorItem Class

Represents a single entry shown in the selector. An item can be a selectable cell, a non-selectable placeholder, or a separator that groups items into a labeled section.

API unit family: TMSFNCBloxSelector Inherits from: TCollectionItem

Syntax

TTMSFNCBloxSelectorItem = class(TCollectionItem)

Remarks

Items occupy a grid of rows and columns; ColumnSpan and RowSpan control how many cells an item covers.

Properties

Name Description
CanDeselect When True, clicking the already-selected item clears the selection. When False, the item stays selected once chosen.
CanSelect When True, the item can be selected by the user.
ColumnSpan Gets or sets the number of columns the item spans in the grid layout.
DataBoolean Stores an arbitrary boolean value associated with the item for application use.
DataInteger Stores an arbitrary integer value associated with the item for application use.
DataObject Stores an arbitrary object reference associated with the item for application use. The item does not own or free this object.
DataString Stores an arbitrary string value associated with the item for application use.
Empty When True, the item is rendered as an empty placeholder cell used to pad a row so the next group starts on a fresh row.
Enabled When True, the item responds to user interaction. When False, the item is drawn with the disabled appearance and cannot be selected.
Hint Gets or sets the hint text shown when the pointer hovers over the item.
Margins Gets or sets the inner margins applied around the item content within its layout rectangle.
RegistrationElement Gets the registration element this item represents, when the item was generated from a registered element.
RowSpan Gets or sets the number of rows the item spans in the grid layout.
Separator When True, the item is a separator that spans the full width and visually groups the items that follow it.
SeparatorHeight Gets or sets the height, in layout units, of the item when it is a separator.
SeparatorLine When True and the item is a separator, the separator is drawn as a single horizontal line; when False, it is drawn as a filled rectangle.
Visible When True, the item is laid out and drawn. When False, the item is skipped during layout and not shown.

Methods

Name Description
State Returns the current visual interaction state of the item.