Function SearchNode(TreeView:TRzTreeView;Txts:String):TTreeNode;
var
i:integer;
sString;
begin
Result:=nil;
New(s);
For i:=0 To TreeView.Items.Count-1 Do
begin
s:=TreeView.Items.Data;
If s^=Txts Then
begin
Result:=TreeView.Items;
Exit;
end;
end;
end;
procedure TreeExpand(TreeView:TRzTreeView;notetext:string);
var
node:TTreeNode;
begin
node:=SearchNode(TreeView,notetext);
if node<>nil then
node.Expand(true);
end;