Forum Discussion
tristaanogre
13 years agoEsteemed Contributor
While TVirtualStringTree is common, it is, to me, the bane of my existance at my last job. These reason being is that the nodes within the virtual string tree are not Ole compatible objects but are Delphi record objects and, therefore, inaccessible to TestComplete. Real pain..
What we had to do is use a combination of keystrokes and explicit "DoEdit" calls on the TVirtualStringTree object to navigate and search for text within a "cell" on the component and then perform actions based upon that location... Fortunately, our developers at a later point added controls to the form containing the component for actually executing a search and then, with the record highlighted, you can click a button on the form and it sill act on what is highlighted... we still could not directly access the rows and nodes on the string tree, but we could manipulate our way through it...
sorry, but I really don't know of another way... if you get a different answer of figure out something else, please post it as I have some friends back at that old job who would love to be able to get away from some of those work-arounds....
What we had to do is use a combination of keystrokes and explicit "DoEdit" calls on the TVirtualStringTree object to navigate and search for text within a "cell" on the component and then perform actions based upon that location... Fortunately, our developers at a later point added controls to the form containing the component for actually executing a search and then, with the record highlighted, you can click a button on the form and it sill act on what is highlighted... we still could not directly access the rows and nodes on the string tree, but we could manipulate our way through it...
sorry, but I really don't know of another way... if you get a different answer of figure out something else, please post it as I have some friends back at that old job who would love to be able to get away from some of those work-arounds....
Related Content
- 14 years ago
- 14 years ago
- 14 years ago
- 14 years ago
Recent Discussions
- 19 hours ago