Ask a Question

How to get a tabitem location?

SOLVED
MDJ
New Contributor

How to get a tabitem location?

I'm writing a script to rename a tabitem by right click the tabitem caption. But I can't get the tabitem location through testcomplete.

Although I can directly assign value to tab "Text", but this is not a user’s behavior. How can I get the tabitem location?

3 REPLIES 3
Marsha_R
Champion Level 2

What happens when you use Object Spy on the tabitem?

MDJ
New Contributor

Thanks Marsha_R.

My problem is Test Complete can't find the tab item control, only shows tab pages. I want to get the tab item location.

MDJ_0-1637132596080.png

 

MDJ
New Contributor

I found the solution. The "TabControl" element has method "GetTabRect". I can get the tab caption location through this method.

cancel
Showing results for 
Search instead for 
Did you mean: