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?
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.
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.