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
 Select thumb by file name?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Gianluca83

2 Posts

Posted - Oct 04 2011 :  15:10:33  Show Profile  Reply
Hello!
Sorry in advance for my very bad english.
I have imageen 3.1.2
Im try to make a little image viewer.
I put in my project a Timageenview and TImageEnMview.
I load a picture in imageview and i use fillfromdirectory for see in TImageEnMview all image located in that folder. The problem is that: i want Select in Timageenmview the same image/thumb that i have load in imageenview but i dont know how get select image from filename. Can i make it and how?

fab

1310 Posts

Posted - Oct 04 2011 :  23:51:59  Show Profile  Reply
Hello Gianluca,
FillFromDirectory fills the property ImageFileName[] of TImageEnMView with the actual loaded file name.
For this reason you could make a loop and search for the file name inside it (ImageEnMView.ImageFileName[...]).

If you need the opposite (show the selected image of TImageEnMView in TImageEnView) just handle the event OnImageSelect.
Go to Top of Page

Gianluca83

2 Posts

Posted - Oct 05 2011 :  07:50:01  Show Profile  Reply
thanks fabrizio fo rensponse.
I do not have much experience with delphi.
Can you make a little example?
thanks again.
Go to Top of Page

fab

1310 Posts

Posted - Oct 05 2011 :  09:16:45  Show Profile  Reply
Look at this example:

"multi\Thumbnails"

Check the "Preview" checkbox.

This example has a TImageEnMView on the left, and fill thumbnails using FillFromDirectory whenever you change a directory.
On the right there is one TImageEnView, which shows the selected thumbnail.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: