TdxCustomBreadcrumbEdit.OnDeleteNode Event
Enables you to perform specific actions before a node is deleted.
Declaration
property OnDeleteNode: TdxBreadcrumbEditNodeEvent read; write;
Remarks
In the breadcrumb, you can bind the custom data to the node using the node’s Data property, or the node’s AddChild and AddNode methods (via the method’s AData parameter).
When deleting the node, this data must be released manually using the OnDeleteNode event:
procedure <TForm1>.<dxBreadcrumbEdit>DeleteNode(Sender: TObject;
ANode: TdxBreadcrumbEditNode);
var
P: Pointer;
begin
P := ANode.Data;
if P <> nil then
Dispose(P);
end;
Sender specifies the breadcrumb control.
ANode specifies the node that will be deleted.
See Also