ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Sort order TImageEnMView

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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