steve_reiss
12 years agoNew Contributor
FindChild on .NET Dialog
Hi All,
I'm trying to use the FindChild Method to find 1 or more dynamic listview items in a .NET v4 application dialog. I have tried a number of ways to find the objects that I need with no sucess.
Information :
Start at this object and FindChild objs :
Sys.Process("Hightail").WPFObject("HwndSource: ShareWindow", "Share").WPFObject("ShareWindow", "Share", 1).WPFObject("MainGrid").WPFObject("ShareManagePanel", "", 1).WPFObject("Grid", "", 1).WPFObject("shareManage").WPFObject("Grid", "", 1).WPFObject("usersListView")
Find 1 or More of these objects :
Sys.Process("Hightail").WPFObject("HwndSource: ShareWindow", "Share").WPFObject("ShareWindow", "Share", 1).WPFObject("MainGrid").WPFObject("ShareManagePanel", "", 1).WPFObject("Grid", "", 1).WPFObject("shareManage").WPFObject("Grid", "", 1).WPFObject("usersListView").WPFObject("ListViewItem", "", 1)
Expecting to find objects :
WPFObject("ListViewItem", "", 1)
WPFObject("ListViewItem", "", 2)
jScript Code :
var ListView = Alias.long_long_object_Path.
var PropArray = new Array ("Name");
var ValuesArray = new Array ("ListViewItem");
var allShareUsers = ListView.FindChild(PropArray, ValuesArray, 1);
Any assistance would be greatly appreciated!
Steve
I'm trying to use the FindChild Method to find 1 or more dynamic listview items in a .NET v4 application dialog. I have tried a number of ways to find the objects that I need with no sucess.
Information :
Start at this object and FindChild objs :
Sys.Process("Hightail").WPFObject("HwndSource: ShareWindow", "Share").WPFObject("ShareWindow", "Share", 1).WPFObject("MainGrid").WPFObject("ShareManagePanel", "", 1).WPFObject("Grid", "", 1).WPFObject("shareManage").WPFObject("Grid", "", 1).WPFObject("usersListView")
Find 1 or More of these objects :
Sys.Process("Hightail").WPFObject("HwndSource: ShareWindow", "Share").WPFObject("ShareWindow", "Share", 1).WPFObject("MainGrid").WPFObject("ShareManagePanel", "", 1).WPFObject("Grid", "", 1).WPFObject("shareManage").WPFObject("Grid", "", 1).WPFObject("usersListView").WPFObject("ListViewItem", "", 1)
Expecting to find objects :
WPFObject("ListViewItem", "", 1)
WPFObject("ListViewItem", "", 2)
jScript Code :
var ListView = Alias.long_long_object_Path.
var PropArray = new Array ("Name");
var ValuesArray = new Array ("ListViewItem");
var allShareUsers = ListView.FindChild(PropArray, ValuesArray, 1);
Any assistance would be greatly appreciated!
Steve