Hello forum members, I would like to ask for help in completing the code that is to give the entire folder to the VST.
procedure TForm1.Button1Click(Sender: TObject);
var
Node: PVirtualNode;
Data: PData;
SL: TStringList;
begin
if SelectDirectoryDialog1.Execute then
SL := FindAllFiles(SelectDirectoryDialog1.FileName, '*.jpg', true);
VST.Clear;
VST.NodeDataSize := SizeOf(TData);
Node := VST.AddChild(nil);
Data := VST.GetNodeData(Node);
Data^.PATH := ;
Data^.FImage := ;
SL.Free;
end;