Nothing happen to see the Memo and also the Label which is quite on progressing hash generated on Delphi FMX. But the result works fine.
Generate with the directory
Code:
function GenerateHashMultiCallback(FileName: WideString; FileSize: extended;
FileProgress, TotalProgress, TotalFiles, FileCounted,
StatusCode: Integer): Boolean;
begin
Form5.Label9.Text := Format(XH_FILENAME, [ExtractFileName(FileName)]);
Form5.Label10.Text := Format(XH_FILEPOSITION, [ByteOrTb((FileSize * FileProgress) / 100), ByteOrTb(FileSize)]);
Form5.Label11.Text := Format(XH_PERCENTAGE, [FileProgress]);
Form5.Label12.Text := Format(XH_PERCENTAGE, [TotalProgress]);
Form5.ProgressBar1.Value := TotalProgress;
case StatusCode of
H_FILE_HASHING_DONE:
Form5.Memo1.Lines.Add(FileName + ' ... Done!');
-1,-4,-5,-6,-7,-8,-9,-10,-12,-13:
Form5.Memo1.Lines.Add('>>> Error code: ' + IntToStr(StatusCode));
end;
Form5.Label14.Text := Format(XH_GENERATESTATUS, [FileCounted, TotalFiles]);
ProcessMessages;
Result := CancelAll;
end;