Table of Contents

TTMSFNCBloxSelector Class

A control that lists the diagram elements registered with a connected diagram control and lets the user pick one to insert. Items are grouped by category and can be selected by click, keyboard, or drag.

API unit family: TMSFNCBloxSelector Inherits from: TTMSFNCBloxCustomSelector

Syntax

TTMSFNCBloxSelector = class(TTMSFNCBloxCustomSelector)

Properties

Name Description
Appearance Gets or sets the visual settings used to render items and separators. (inherited from TTMSFNCBloxCustomSelector)
BlockChange When True, suppresses the change handling that would otherwise run when the selection changes. (inherited from TTMSFNCBloxCustomSelector)
BloxControl Gets or sets the diagram control that the selector populates from and inserts the chosen element into. (inherited from TTMSFNCBloxCustomSelector)
BloxControlUpdate Gets or sets the diagram control used to receive inserted elements without rebuilding the selector item list. (inherited from TTMSFNCBloxCustomSelector)
Columns Gets or sets the number of columns used to lay out items. (inherited from TTMSFNCBloxCustomSelector)
DragItemIndex Gets the index of the item currently being dragged, or -1 when no drag operation is in progress. (inherited from TTMSFNCBloxCustomSelector)
Items Gets or sets the collection of items shown by the selector. (inherited from TTMSFNCBloxCustomSelector)
Modes Gets or sets which element categories the selector lists. (inherited from TTMSFNCBloxCustomSelector)
Rows Gets or sets the number of rows used to lay out items per page. (inherited from TTMSFNCBloxCustomSelector)
SelectedItemIndex Gets or sets the index of the currently selected item, or -1 when nothing is selected. (inherited from TTMSFNCBloxCustomSelector)
Version Gets the version number of the control as a string.

Methods

Name Description
BeginUpdate Suspends layout recalculation until a matching EndUpdate call. Use around bulk changes to avoid repeated relayout. (inherited from TTMSFNCBloxCustomSelector)
EndUpdate Resumes layout recalculation suspended by BeginUpdate and recomputes the layout when the outermost update completes. (inherited from TTMSFNCBloxCustomSelector)
InitializeDefault Registers the connected control's elements and rebuilds the item list to reflect the current modes. (inherited from TTMSFNCBloxCustomSelector)
Rebuild Regenerates the item list from the connected diagram control's registered elements, grouping them by category. (inherited from TTMSFNCBloxCustomSelector)
UpdateControlAfterResize Recalculates the item layout after the control has been resized. (inherited from TTMSFNCBloxCustomSelector)
XYToItem Returns the index of the selectable item located at the given control coordinates. (inherited from TTMSFNCBloxCustomSelector)

Events

Name Description
OnAfterDraw Occurs after the control content is drawn, allowing overlay rendering. (inherited from TTMSFNCBloxCustomSelector)
OnBeforeDraw Occurs before the control content is drawn, allowing custom rendering. (inherited from TTMSFNCBloxCustomSelector)
OnItemAfterDrawBackground Occurs after an item background is drawn, allowing overlay rendering. (inherited from TTMSFNCBloxCustomSelector)
OnItemAfterDrawContent Occurs after the item content is drawn, allowing overlay rendering. (inherited from TTMSFNCBloxCustomSelector)
OnItemAfterDrawText Occurs after an item caption is drawn. (inherited from TTMSFNCBloxCustomSelector)
OnItemBeforeDrawBackground Occurs before an item background is drawn, allowing custom rendering. (inherited from TTMSFNCBloxCustomSelector)
OnItemBeforeDrawContent Occurs before the item content is drawn, allowing custom rendering. (inherited from TTMSFNCBloxCustomSelector)
OnItemBeforeDrawText Occurs before an item caption is drawn, allowing the text or rendering to be customized. (inherited from TTMSFNCBloxCustomSelector)
OnItemClick Occurs when an item is clicked. (inherited from TTMSFNCBloxCustomSelector)
OnItemSelected Occurs after an item becomes selected. (inherited from TTMSFNCBloxCustomSelector)