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 layers based on location
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
725 Posts

Posted - Aug 27 2018 :  01:26:24  Show Profile  Reply
Hello,

I am trying to get the order of Layers based on their X,Y location but am not able to get the exact list of layers in proper sequence.

Is there any way by which we an get layers based on their X,Y (top left) location moving from top to bottom and then right. Meaning all layers which are left most will come first in the sequence and the layers towards the right will be follow at the end of the sequence.

TIA


Yogi Yang

xequte

38196 Posts

Posted - Aug 28 2018 :  01:04:21  Show Profile  Reply
Hi Yogi

Why not just create a TList of layers indexes and use Sort:

http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/Classes_TList_Sort.html

In your compare event, just compare the PosX/PosY of the two layers.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: