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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to get the order in which Images are selected?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - Feb 28 2019 :  01:52:51  Show Profile  Reply
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

wesleybobato

Brazil
367 Posts

Posted - Feb 28 2019 :  08:53:29  Show Profile  Reply
Hello

See below :)
http://docwiki.embarcadero.com/CodeExamples/Rio/en/Generics_Collections_TList_(Delphi)
Go to Top of Page

xequte

38615 Posts

Posted - Feb 28 2019 :  14:34:02  Show Profile  Reply
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
Go to Top of Page

yogiyang

India
727 Posts

Posted - Mar 01 2019 :  00:45:56  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: