Skip to main content

TdxTreeViewNodeTextEvent Type

The text-related procedural type for tree nodes.

Declaration

TdxTreeViewNodeTextEvent = procedure(Sender: TdxCustomTreeView; ANode: TdxTreeViewNode; var AText: string) of object;

Parameters

Name Type Description
Sender TdxCustomTreeView

The Tree View control that raised a text-related event.

ANode TdxTreeViewNode

The target tree node.

AText string

A text string associated with the target tree node.

Remarks

The following OnHint event handler displays a string stored in a node’s Data property in the hint:

procedure TForm1.dxTreeViewControl1Hint(Sender: TdxCustomTreeView;
  ANode: TdxTreeViewNode; var AText: string);
begin
  if ANode.Data <> nil then
    try
        AText := string(ANode.Data^);
    except;
    end;
end;

The following Tree View events reference the TdxTreeViewNodeTextEvent type:

See Also