czpqwerty
10 years agoOccasional Contributor
3rd party component indentification
there is one list view and cannot be indentified as .net list view. so it cannot use clickitem function to get one row. i just use text recognition to identify. and i add this wndClass property. ...
- 10 years ago
Glacial ListView isn't compatible with Text Recognition and Object Mapping. You can automate it by using its native properties and methods - those in the .NET category in the Object Browser. For example (assuming the list view appears as a grid):
Select an item (row):// JScript
listObj.Items.Item(RowIndex).Selected = true;Get the number of items (rows) and columns:
var rowCount = listObj.Count;
var columnCount = listObj.Columns.Count;Get a cell value:
var value = listObj.Items.Item(RowIndex).SubItems(ColumnIndex).Text.OleValue;
Sort by a column:
listObj.Sort(ColumnIndex); listObj.NativeClrObject.Refresh();
Hope this helps!