T O P I C R E V I E W |
Gianluca83 |
Posted - Oct 04 2011 : 15:10:33 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?
|
3 L A T E S T R E P L I E S (Newest First) |
fab |
Posted - Oct 05 2011 : 09:16:45 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. |
Gianluca83 |
Posted - Oct 05 2011 : 07:50:01 thanks fabrizio fo rensponse. I do not have much experience with delphi. Can you make a little example? thanks again. |
fab |
Posted - Oct 04 2011 : 23:51:59 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. |