Forum Discussion
ThWatcher
13 years agoOccasional Contributor
Hi.
I don't know if this will be of any help to you in your situation, but I had a similar problem with a list box.
My list box had many items that were not in view, but that I needed to click on in a 'click and drag' test.
I found that using the following command had the side effect of moving the scroll bar and bringing the desired item into view.
Of course, this assumes you know the names of items in your tree or that you can retrieve the names of items in your tree.
// Click the desired item. This brings the item into view in the list box.
TargetDialog.Window("SysListView32", SourceListName).ClickItem(ItemName);
where:
'SourceListName' is the name of the list box.
'ItemName' is the name of the item to be clicked in the list box.
I don't know if this will be of any help to you in your situation, but I had a similar problem with a list box.
My list box had many items that were not in view, but that I needed to click on in a 'click and drag' test.
I found that using the following command had the side effect of moving the scroll bar and bringing the desired item into view.
Of course, this assumes you know the names of items in your tree or that you can retrieve the names of items in your tree.
// Click the desired item. This brings the item into view in the list box.
TargetDialog.Window("SysListView32", SourceListName).ClickItem(ItemName);
where:
'SourceListName' is the name of the list box.
'ItemName' is the name of the item to be clicked in the list box.
Related Content
- 8 years ago
- 13 years ago
Recent Discussions
- 3 days ago