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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IO.Params.FileName

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
PeterPanino Posted - Nov 08 2022 : 02:54:23
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!
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 13 2022 : 20:06:35
Hi Peter

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

Nigel
Xequte Software
www.imageen.com