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
 Is there a bug in ImageEnMulti.ImageFileName?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - Jul 18 2014 :  02:58:34  Show Profile  Reply
I have observed that if we add/load thumbnails manually through code like this
iemPhotos.MIO.LoadFromFile(PhotoFile);


Then if we try to access the filename of a thumbnail using
iemPhotos.ImageFileName[iemPhotos.SelectedImage]

It comes up blank/empty!

Any ideas as to why.

Here if we use
iemPhotos.MIO.Params[iemPhotos.SelectedImage].FileName

The original filename is returned!

Here if we load thumbnails using
iemPhotos.FillFromDirectory

Then if we use
iemPhotos.ImageFileName[iemPhotos.SelectedImage]

It returns original filename!

Is this by design or a bug?

TIA

Yogi Yang

xequte

39053 Posts

Posted - Jul 18 2014 :  09:41:28  Show Profile  Reply
Hi Yogi

That was the way it was coded, as iemPhotos.MIO.LoadFromFile is filling the mview with frames of one file, whereas FillFromDirectory fills with multiple files. However I agree that this is confusing so I will investigate how to improve it.



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