Table of Contents

TTMSFNCBloxCustomSelector Class

Base selector control that displays registered diagram elements in a scrollable palette and lets users choose or drag an element for insertion into a connected diagram control.

API unit family: TMSFNCBloxSelector Inherits from: TTMSFNCCustomScrollControl

Syntax

TTMSFNCBloxCustomSelector = class(TTMSFNCCustomScrollControl)

Properties

Name Description
BlockChange When True, suppresses the change handling that would otherwise run when the selection changes.

Methods

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