Ranorex Team,
I have a ListView that has ListItems that have CheckBoxes. The CheckBoxes are under the first column off the ListView. I am able to get access to the text in the other columns of each ListItem, but unable to get access to the value of the CheckBox (I need to know if it is checked or unchecked). If I use the Spy Tool it reports each item as a ListItem but it does not seem to notice the CheckBox.
What do I need to do to access a CheckBox in a ListView?
Thanks
Gary Nuttall
ListView containing CheckBoxes
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
The ListView class will come with the following new functions in the next version V1.4 (and with some other ones):
We can send you the first V1.4 Beta Version if you send us your company information.
If yes, then you can also use the Element class to retrieve the check information.
Jenö
Ranorex Team
Code: Select all
ListView.IsItemChecked(index);
ListView.CheckItem(index);
ListView.UncheckItem(index);
Does the RanorexSpy show "checked" in the Element State field?If I use the Spy Tool it reports each item as a ListItem but it does not seem to notice the CheckBox.
If yes, then you can also use the Element class to retrieve the check information.
Jenö
Ranorex Team
-
- Posts: 3
- Joined: Thu Sep 27, 2007 6:34 pm
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
-
- Posts: 3
- Joined: Thu Sep 27, 2007 6:34 pm
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
This is a Microsoft C++ control, the same control will be used in the dialog:Its class name according to RanorexSpy is SysListView32.
Start->Settings->Control Panel->Regional and Language Options->Advanced Tab
Can you please check this dialog in your computer.
Does the RanorexSpy show "checked" in the Element State field for the list view in this dialog?
Can you send us a sample application with your control?
I would like to check the new function ListView.IsItemChecked() with the trunk version.
Jenö
Ranorex Team