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