AddSelected(AElement: TTMSFNCBloxElement); |
Adds an element to the selected list |
AsMember(AElement: TTMSFNCBloxElement): Boolean; |
Verifies if the element is a member of a group and if the element group is selected |
BringSelectedsToFront; |
Brings all selected elements to the front |
BringToFront(AElement: TTMSFNCBloxElement); |
Brings a specific element to the front |
CancelInsertingBlock; |
Cancels inserting a block started with one of the StartInsertingElement method overloads |
CancelPanning; |
Cancels panning started with StartPanning |
CanPaste: Boolean; |
Returns a Boolean if blox can be pasted from the clipboard |
CanRedo: Boolean; |
Returns a Boolean if the TTMSFNCBloxControl can perform a Redo action |
CanUndo: Boolean; |
Returns a Boolean if the TTMSFNCBloxControl can perform an Undo action |
CanvasToClient(APoint: TTMSFNCBloxPoint): TTMSFNCBloxPoint; |
Converts a blox coordinate to a pixel coordinate |
ClearUndoStack; |
Clears the undo stack (The undo stack has a maximum of 20 undo actions, for each action that is pushed in the stack, the oldest action is removed) |
ClientToCanvas(APoint: TTMSFNCBloxPoint): TTMSFNCBloxPoint; |
Converts a pixel coordinate to a blox coordinate |
CopyElementsToClipboard; |
Copies the selected elements to the clipboard |
DeleteElements(restricted: TTMSFNCBloxRestrictions); |
Deletes elements in the selected list based on the element restrictions. Restrictions can be one or multiple of the following values crNoMove, crNoResize, crNoRotation, crNoEdit, crNoDelete, crKeepRatio, crNoClipboard, crNoSelect, crNoRotCenterMove, crNoLink |
DeleteSelecteds; |
Delete all the selected elements |
EndInsertingElement; |
Inserts the element at position 0, 0 |
GroupSelectedBlocks: TTMSFNCBloxGroup; |
Groups all the selected blocks, creates a TTMSFNCBloxGroup element and returns that group |
GroupSelection: Boolean; |
Returns a Boolean to determine if the TTMSFNCBloxControl has groups selected |
HasSelecteds(AGroup: TTMSFNCBloxGroup): Boolean; |
Returns a Boolean whether a group has selected elements |
IsDisplayingHandles(AElement: TTMSFNCBloxElement): Boolean; |
Returns a Boolean whether an element is displaying selection handles |
Modified; |
Calls the OnModified event |
MoveBlocks(ADeltaX, ADeltaY: Double; AOnlySelected: Boolean = false; AOnlyMovable: Boolean = true); |
Moves blocks to a specific coordinate based on the original coordinate shifted with the delta x and y parameters. Optionally move only the selected blocks and blocks that are movable |
NextRedoAction: string; |
Returns the next redo action based on the name added when pushing an action to the undo stack |
NextUndoAction: string; |
Returns the next undo action based on the name added when pushing an action to the undo stack |
PasteElementsFromClipboard; |
Pastes elements from the clipboard when the clipboard has valid blox data |
PushUndoStack(const AActionName: string); |
Pushes an action to the undo stack |
Redo; |
Goes one step forward in the undo stack and reinitializes the TTMSFNCBloxControl with the next state of the blocks |
Redraw; |
Forces a redraw of the blox control |
RemoveSelected(AElement: TTMSFNCBloxElement); |
Removes the element if the element is selected |
SelectAll; |
Selects all elements |
SelectedBlockCount(AFilter: TTMSFNCBloxElementfilter = cfAll): Integer; |
Returns the count of selected blocks based on a specific filter |
SelectedCount(AFilter: TTMSFNCBloxElementFilter = cfAll): Integer; |
Returns the count of selected elements based on a filter |
SelectedLinkCount: Integer; |
Returns the count of selected links |
SendSelectedsToBack; |
Sends all the selected elements to the back |
SendToBack(AElement: TTMSFNCBloxElement); |
Sends a specific element to the back |
SetDefaultState; |
Forces the state of the TTMSFNCBloxControl to msBrowsing if for some reason the state is corrupted due to the combination of multiple actions such as panning, zooming in the TTMSFNCBloxControl or inserting, deleting an element |
StartInsertingElement(AElement: TTMSFNCBloxEelement; AKeepInserting: Boolean = False); |
Starts inserting a created element in the TTMSFNCBloxControl . The AKeepInserting parameter can be used to create a duplicate of that item and keep inserting that item. To cancel or end this operation call CancelInsertBlock or EndInsertingElement |
StartInsertingElement(AElementClass: TTMSFNCBloxElementClass; AKeepInserting: Boolean = False); |
Starts inserting an element based on a specific element class. The behavior is identical to the previous StartInsertingElement method |
StartInsertingElement(const AElementId: string; AKeepInserting: Boolean = False); |
Starts inserting an element based on a specific element id. The behavior is identical to the previous StartInsertingElement method |
StartPanning; |
Starts a panning operation in the TTMSFNCBloxControl |
Undo; |
Goes one step backward in the undo stack and reinitializes the TTMSFNCBloxControl with the previous state of the blocks |
UngroupSelectedBlocks; |
Ungroups all selected blocks |
UnselectAll; |
Unselects all selected blocks |