T O P I C R E V I E W |
jenswahl |
Posted - Apr 08 2013 : 04:10:27 Hello,
I show an image from a TImageEnMView in a TImageEnView using
TImageEnView.IO.LoadFromFile(TIMageEnMView.ImageFileName[idx]).
The next image I get by
Inc(idx); TImageEnView.IO.LoadFromFile(TIMageEnMView.ImageFileName[idx])
This works fine if the TImageEnMView is sorted by default (Filename). If the TImageEnMView is sorted by date or filesize I NOT get with Inc(idx) the next in TImageEnMView shown image; I get the next in the default sorting order.
How can I get the images in the rigth sequence like the shown appending from the sort order? I'm using Version 3.1.2.
Jens
|
4 L A T E S T R E P L I E S (Newest First) |
jenswahl |
Posted - Apr 12 2013 : 01:46:35 Thank you Prg. I done it. |
Prg |
Posted - Apr 10 2013 : 01:45:17 You need a call TImageEnMView.Sort(YourSortProcedure) after any changes you do in TImageEnMView (add, remove etc.). |
jenswahl |
Posted - Apr 08 2013 : 23:11:38 Hello Nigel,
thank you for your help. But it was a mistake by me: after showing the image in the TImageEnView I made a fillfromdirectory in the TImageEnMView and so I got the default sorting order.
Jens |
xequte |
Posted - Apr 08 2013 : 20:52:49 Hi Jens
The Filenames[] property will reference the images as they are displayed (current sort order). If you need to display them in their original order you should assign the file list to a TStringList before calling TImageEnMView.sort.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|