How to test subItem of a list ctrl?

Class library usage, coding and language questions.
JohnsonFeng
Posts: 2
Joined: Tue Oct 17, 2006 8:31 am

How to test subItem of a list ctrl?

Post by JohnsonFeng » Fri Oct 27, 2006 4:29 am

when I want to click a subItem of the listCtrl to edit

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Wed Nov 01, 2006 3:08 pm

You should select the subItem and then click it with the mouse:

Code: Select all

bRet = RxElementFindChild(&element, ROLE_SYSTEM_LISTITEM, "Test2", NULL, &listItem);
if (bRet==TRUE)
{
  RxElementSelect(&listItem, SELFLAG_TAKEFOCUS | SELFLAG_TAKESELECTION);
  RxMouseClickElement(&listItem);
}
...
Jenö Herget
Ranorex Team