| View previous topic :: View next topic |
| Author |
Message |
gnutt080766
Joined: 27 Sep 2007 Posts: 3
|
Posted: Wed Dec 05, 2007 7:24 pm Post subject: ListView containing CheckBoxes |
|
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 |
|
| Back to top |
|
 |
Support Team Site Admin
Joined: 07 Jul 2006 Posts: 344
|
Posted: Wed Dec 05, 2007 7:54 pm Post subject: |
|
The ListView class will come with the following new functions in the next version V1.4 (and with some other ones):
Code: click into code to enlarge
ListView.IsItemChecked(index);
ListView.CheckItem(index);
ListView.UncheckItem(index);
We can send you the first V1.4 Beta Version if you send us your company information.
| Quote: |
| If I use the Spy Tool it reports each item as a ListItem but it does not seem to notice the CheckBox. |
Does the RanorexSpy show "checked" in the Element State field?
If yes, then you can also use the Element class to retrieve the check information.
Jenö
Ranorex Team |
|
| Back to top |
|
 |
gnutt080766
Joined: 27 Sep 2007 Posts: 3
|
Posted: Wed Dec 05, 2007 8:20 pm Post subject: |
|
| The RanorexSpy Tool shows "selectable" not "checked" when I spy on a checked CheckBox in a ListView. |
|
| Back to top |
|
 |
Support Team Site Admin
Joined: 07 Jul 2006 Posts: 344
|
Posted: Wed Dec 05, 2007 10:56 pm Post subject: |
|
Is the control a .NET control?
(Has the control a control name?)
Is the control an owner draw control?
Jenö
Ranorex Team |
|
| Back to top |
|
 |
gnutt080766
Joined: 27 Sep 2007 Posts: 3
|
Posted: Thu Dec 06, 2007 12:37 am Post subject: |
|
| The control does not have a control name and I do not believe it is a .NET control. Its class name according to RanorexSpy is SysListView32. |
|
| Back to top |
|
 |
Support Team Site Admin
Joined: 07 Jul 2006 Posts: 344
|
Posted: Thu Dec 06, 2007 2:12 pm Post subject: |
|
| Quote: |
| Its class name according to RanorexSpy is SysListView32. |
This is a Microsoft C++ control, the same control will be used in the dialog:
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 |
|
| Back to top |
|
 |
|