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
 Is there a bug in ImageEnMulti.ImageFileName?

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
yogiyang Posted - Jul 18 2014 : 02:58:34
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 18 2014 : 09:41:28
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