Table of Contents

TTMSFNCCloudDemoListBox Class

Scrollable list box used in demo applications to display a vertical list of items with optional icons and text. Publishes the selected index, the item collection, and the item height for design-time configuration.

API unit family: TMSFNCCloudDemoListBox Inherits from: TTMSFNCCustomCloudDemoListBox

Syntax

TTMSFNCCloudDemoListBox = class(TTMSFNCCustomCloudDemoListBox)

Properties

Name Description
ItemHeight Gets or sets the height, in pixels, of each item in the list. (inherited from TTMSFNCCustomCloudDemoListBox)
ItemIndex Gets or sets the zero-based index of the selected item, or -1 when no item is selected. (inherited from TTMSFNCCustomCloudDemoListBox)
Items Provides the collection of items displayed by the list box. (inherited from TTMSFNCCustomCloudDemoListBox)

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. (inherited from TTMSFNCCustomCloudDemoListBox)
Clear Removes all items from the list and resets the selection. (inherited from TTMSFNCCustomCloudDemoListBox)
EndUpdate Re-enables updating after a matching begin-update call and rebuilds and repaints the list to reflect any pending changes. (inherited from TTMSFNCCustomCloudDemoListBox)
InsertItem Inserts a new item at the specified position with the given text, an optional icon, and an optional associated object. (inherited from TTMSFNCCustomCloudDemoListBox)
SupportsFileType Indicates whether a dedicated icon is available for the given file type. (inherited from TTMSFNCCustomCloudDemoListBox)

Events

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