Nodes: String;
The Nodes property determines value of the NODES parameter in binding string.
The NODES parameter determines combo tree node names. The names should be separated with the separator character determined in the Separators property. The node subelements are determined in curved brackets. Example: "A,{A1,{A11},A2},B,{B1}", , is used as the separator character.
The Nodes property is available if the NodesDefined property is set to True. If the Nodes property is changed, the NodesDefined property is automatically set to True.
Function CreateTreeComboBidning(Nodes: String; Separator: String; DefaultNode: String = ""): String;
Var
BM: IBindingManager;
TreeComboBinding: IBindingTreeCombo;
Begin
BM := New BindingManager.Create;
TreeComboBinding := BM.CreateByUi("TreeCombo") As IBindingTreeCombo;
//Nodes
TreeComboBinding.Nodes := Nodes;
//Node separator
TreeComboBinding.Separators := Separator;
//Default node
If DefaultNode <> "" Then
TreeComboBinding.Value := DefaultNode;
End If;
Return TreeComboBinding.AsString;
End Function CreateTreeComboBidning;
This function generates binding string to use the editor as a combo tree. The tree nodes and general settings of the tree are sent using input parameters. Nodes sent in the Nodes parameter should be formed as a string, which format can be determined in the Nodes property.
See also: