The Documentation says:
TIOParams.FileName Returns the filename of the last loaded or saved image.
So I am loading an image file with:
procedure TformMain.ButtonOpenClick(Sender: TObject);
begin
var ThisFilename := ImageEnView1.IO.ExecuteOpenDialog();
if ThisFilename <> '' then
ImageEnView1.IO.LoadFromFileAuto(ThisFilename);
end;
However, ImageEnView1.IO.Params.FileName in the ImageEnView1.OnImageLoaded event handler is an EMPTY STRING:
procedure TformMain.ImageEnView1ImageLoaded(Sender: TObject);
begin
// EMPTY STRING:
CodeSite.Send('FileName:', ImageEnView1.IO.Params.FileName);
end;
So how can I get the FileName from ImageEn after loading the file?
UPDATE: IO.Params.FileName is available only AFTER the OnImageLoaded event. However, it would be most helpful IN the OnImageLoaded event!