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
 How to get the order in which Images are selected?

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
yogiyang Posted - Feb 28 2019 : 01:52:51
Hello,

Is there any method by which we can get the order in which the images were selected in ImageEnMView.

For example there are 20 images loaded in ImageEnMView.

In this if a user first clicked on Image # 10 and then control clicks on Image # 2 and then on #14 and so one.

Now I want to retrieve the images in the order they were clicked which in this case is:
10,2,14,...

TIA


Yogi Yang
3   L A T E S T    R E P L I E S    (Newest First)
yogiyang Posted - Mar 01 2019 : 00:45:56
Hello,

@wesleybobato,

I tried to use TStringList as well as array but failed so I had to ask for help to know if there is a better and more elegant way.

And it appears that there is a better way as suggested by Nigel.

Thanks to both of you for your support.

TIA


Yogi Yang
xequte Posted - Feb 28 2019 : 14:34:02
Hi

Hidden but available...

If you set ImageEnMView1.MultiSelectedImagesAutoSort := False; then the images will be in the order they were selected.

ImageEnMView1.MultiSelectedImagesAutoSort := False;
for i := 0 to ImageEnMView1.MultiSelectedImagesCount - 1 do...


Nigel
Xequte Software
www.imageen.com
wesleybobato Posted - Feb 28 2019 : 08:53:29
Hello

See below :)
http://docwiki.embarcadero.com/CodeExamples/Rio/en/Generics_Collections_TList_(Delphi)