Ask a Question

How to display VCLObject's child objects in order

june20satya
Occasional Contributor

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 2
TanyaYatskovska
SmartBear Alumni (Retired)

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.


 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



AlexKaras
Community Hero

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.
Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: