Table of Contents

TTMSFNCEditorList Class

Drop-on-form list component based on TTMSFNCEditorListView with item selection, note text, and multi-select support exposed as published properties.

API unit family: TMSFNCEditorListView Inherits from: TTMSFNCEditorListView

Syntax

TTMSFNCEditorList = class(TTMSFNCEditorListView)

Properties

Name Description
Appearance Visual appearance settings for the list and its items. (inherited from TTMSFNCEditorListView)
CanUnselectItems When True, clicking a selected item deselects it. (inherited from TTMSFNCEditorListView)
DefaultItemHeight Default row height in pixels for items that do not specify their own height. (inherited from TTMSFNCEditorListView)
DrawDataString Alias for DrawNoteText; when True, the data string is shown as note text. (inherited from TTMSFNCEditorListView)
DrawNoteText When True, the secondary note text is rendered below each item name. (inherited from TTMSFNCEditorListView)
EditMode When True, an item is currently being edited inline. (inherited from TTMSFNCEditorListView)
ImagesClickable When True, clicking an item's image is treated as an image interaction rather than a plain item click. (inherited from TTMSFNCEditorListView)
Items The collection of items displayed in the list. (inherited from TTMSFNCEditorListView)
ItemsMovable When True, items can be reordered by dragging them within the list. (inherited from TTMSFNCEditorListView)
ItemsReadOnly When True, item name and note text cannot be edited inline. (inherited from TTMSFNCEditorListView)
LastSelectedItemIndex Zero-based index of the most recently selected item, or -1 if none. (inherited from TTMSFNCEditorListView)
MultiSelect When True, more than one item can be selected at a time. (inherited from TTMSFNCEditorListView)
ShowImages When True, each item displays its associated image. (inherited from TTMSFNCEditorListView)

Methods

Name Description
BeginUpdate Suspends visual updates; call EndUpdate to resume. (inherited from TTMSFNCEditorListView)
EndEditMode Exits inline edit mode, optionally applying the edited value. (inherited from TTMSFNCEditorListView)
EndUpdate Resumes visual updates after a BeginUpdate call and redraws the list. (inherited from TTMSFNCEditorListView)
GetListHeight Returns the total pixel height required to display all items without scrolling. (inherited from TTMSFNCEditorListView)
GetSelectedItems Returns an array of all currently selected items.
SelectAllItems Selects all items in the list. (inherited from TTMSFNCEditorListView)
SelectItem Selects the item at the specified zero-based index.
SetAcceptDrag Enables or disables drag-and-drop file acceptance for the list. (inherited from TTMSFNCEditorListView)
StartEditMode Enters inline edit mode for the currently focused item. (inherited from TTMSFNCEditorListView)
UnselectAllItems Clears the selection state of all items. (inherited from TTMSFNCEditorListView)
UpdateList Recalculates item layout and redraws the entire list. (inherited from TTMSFNCEditorListView)

Events

Name Description
OnAddNewItem Fired when the user adds a new item to the list. (inherited from TTMSFNCEditorListView)
OnDoubleClickItem Fired when the user double-clicks an item. (inherited from TTMSFNCEditorListView)
OnItemSelectedChanged Fired when an item's selection state changes. (inherited from TTMSFNCEditorListView)
OnItemsChanged Fired when the items collection changes. (inherited from TTMSFNCEditorListView)