Table of Contents

TTMSFNCCustomCloudDemoListBox Class

Base scrollable list box used in demo applications to present a vertical list of selectable items, each with optional icon and text, and to notify when the selected item changes. Descendants expose the public surface as published properties.

API unit family: TMSFNCCloudDemoListBox Inherits from: TTMSFNCCustomScrollControl

Syntax

TTMSFNCCustomCloudDemoListBox = class(TTMSFNCCustomScrollControl)

Methods

Name Description
AddItem Adds a new item to the end of the list with the given text, an optional icon, and an optional associated object.
Clear Removes all items from the list and resets the selection.
EndUpdate Re-enables updating after a matching begin-update call and rebuilds and repaints the list to reflect any pending changes.
InsertItem Inserts a new item at the specified position with the given text, an optional icon, and an optional associated object.
SupportsFileType Indicates whether a dedicated icon is available for the given file type.

Events

Name Description
OnItemChanged Occurs after the selected item changes, whether through user interaction or by setting the selected index in code.