ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IO.Params.FileName
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

934 Posts

Posted - Nov 08 2022 :  02:54:23  Show Profile  Reply
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!

xequte

38683 Posts

Posted - Nov 13 2022 :  20:06:35  Show Profile  Reply
Hi Peter

I'm not seeing that. What image types is it occurring with?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: