Ask a Question

Issue reading node names from a TVirtualStringTree object

shejuti
Occasional Contributor

Issue reading node names from a TVirtualStringTree object

We have a TVirtualStringTree tree for a list of items. It has expandable icons and checkboxes as shown in the image. I can never check the checkboxes. It shows error as "The tree nodes have no check boxes or they are custom-drawn." When I try to read the tree root nodes, it returns me the first node and then the sub nodes of it. But I can't read the root nodes of the tree. Can someone please help me with a proper way to read all the nodes of the tree. I need to also check the checkboxes or click on a particular node.

Image 4.png

NOTE: If I record the actions of expanding nodes or checking the check boxes, it comes up as something like below-

let virtualStringTree = Aliases.patients.EthnicitySelectorForm.ViewPanel.EthnicityTree;
virtualStringTree.Click(15, 27);
virtualStringTree.Click(35, 26);

2 REPLIES 2
rraghvani
Champion Level 2

shejuti
Occasional Contributor

Thank you for your reply. But I have seen these before. Could not solve the issue though.

cancel
Showing results for 
Search instead for 
Did you mean: