Drop-down toolbar button that lets the user pick one element from a list of registered blox elements and inserts the chosen one.
API unit family: TMSFNCBloxToolBar
Inherits from: TTMSFNCToolBarButton
Syntax
TTMSFNCBloxToolBarElementPicker = class(TTMSFNCToolBarButton)
Properties
| Name |
Description |
| Items |
The collection of elements offered by the picker. |
| SelectedItemIndex |
Index of the currently selected element, or -1 when none is selected. |
Methods
| Name |
Description |
| BlockChange |
Indicates whether the picker currently suppresses change notifications. |
| BloxSelector |
Returns the selector that holds the pickable elements. |
| Draw |
Draws the picker button, including the currently selected element. |
| DrawSelectedElement |
Draws a preview of the currently selected element on the button face. |
Events
| Name |
Description |
| OnItemSelected |
Occurs when the user selects an element from the picker. |