How to bring an invisible treeitem to foreground.

Ask general questions here.
cancerion
Posts: 30
Joined: Tue Jun 16, 2009 6:15 pm

How to bring an invisible treeitem to foreground.

Post by cancerion » Thu Mar 18, 2010 6:44 am

Hi,

I am using Ranorex 1.5.0.1 I have several folders in my Outlook navigation pane.Ranorex is able to identify the folders which are even not visible.
But I want to make them visible.

Is there any API which can traverse and make that folder node visible and selected?

As we have EnsureVisible () in Ranorex 2.x , do we have any such API in RAnorex 1.x?

If possible please give small sample snippets.

Thanks,
Sachin

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How to bring an invisible treeitem to foreground.

Post by Support Team » Thu Mar 18, 2010 10:54 am

Hi,

I think the method you are searching for is tree.SelectItem();
The function selects the specified tree view item, scrolls the item into view, or redraws the item in the style used to indicate the target of a drag-and-drop operation.

Regards,
Peter
Ranorex Support Team
.
Image