Forum Discussion

june20satya's avatar
june20satya
Occasional Contributor
12 years ago

How to display VCLObject's child objects in order

I am displaying the captions of VCLObject's child objects . But I am not sure in what order they are displayed. I need them to be displayed in the order they are visible on the application.

2 Replies

  • Hi Satya,

     


    TestComplete's Object Browser displays the tree of objects taken from your tested app. You can filter data there, but there is no way to change the order.


     

  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 2 rankChampion Level 2
    Hi Satya,



    Assuming (as you did not mentioned this) that you need this in your code, one of the possible solutions may be to get a list of all needed VCL objects and then order this list using .Left and .Top properties of every object. I am sure that you know (or will find) quite a few sorting algorithms that will fit this task.