Accessible State : MultiSelectable

Ask general questions here.
atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Accessible State : MultiSelectable

Post by atom » Wed Feb 03, 2010 3:06 pm

Hiya

As you've probably gathered (from my recent posts!) we're implementing MSAA for a DataGrid, to expose it to Ranorex as a Table. We have exposed Row's with accessible states:

- Selectable
- MultiSelectable

However in Ranorex API, there is only one method on a Row, called "Select"...
Is there, a way to MultiSelect ?

Thanks

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Re: Accessible State : MultiSelectable

Post by atom » Wed Feb 03, 2010 3:19 pm

Just to update, according to:

http://msdn.microsoft.com/en-us/library ... 85%29.aspx

It seems the Select should be able to take parameters

Regards

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Accessible State : MultiSelectable

Post by Support Team » Wed Feb 03, 2010 4:28 pm

Hi,

Please try to set the property Row.Selected to change the selection state of your row.
Maybe that's what you're looking for.

Regards,

Christoph
Ranorex Support Team

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Re: Accessible State : MultiSelectable

Post by atom » Wed Feb 03, 2010 7:06 pm

Hiya

Yes this selects the row, but the MSAA grid doesnt unselect all other rows
According to web page above, it is possible via MSAA to specify if the selection should be singular or part of a multi-select

Regards

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Accessible State : MultiSelectable

Post by Support Team » Wed Feb 03, 2010 8:25 pm

The action Row.Select selects one row and deselects all others (cf. SELFLAG_TAKESELECTION). Setting the attribute Row.Selected selects or deselects the corresponding row without changing the selection state of other rows (cf. SELFLAG_ADDSELECTION and SELFLAG_REMOVESELECTION).

Regards,
Alex
Ranorex Support Team

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Re: Accessible State : MultiSelectable

Post by atom » Thu Feb 04, 2010 10:18 am

ok thanks for information