Page 1 of 1

Accessible State

Posted: Wed Jan 20, 2010 11:31 am
by atom
Hiya

We have a MSAA Table control, that exposes Row, and Cell elements
Each Cell element can be Read Only, or not
This is highlighted in the AccessibleState property in Ranorex Spy

Question is, how to get the AccessibleState property via ranorex api ?

FOLLOWUP: Ok can get it from Element.GetAttributeValue
But this seems to return a number - are accessible states coming from some enumeration?

Re: Accessible State

Posted: Wed Jan 20, 2010 2:58 pm
by Support Team
You can use the Accessible adapter to get the accessible states as an enum, this is the recommended way:
Cell myCell = ...;
Ranorex.Accessible accessibleAdapter = new Ranorex.Accessible(myCell);
System.Windows.Forms.AccessibleStates state = accessibleAdapter.State;
The following section in the Ranorex User Guide gives an introduction on how to use Ranorex adapters:
http://www.ranorex.com/support/user-gui ... apter.html

Regards,
Alex
Ranorex Support Team

Re: Accessible State

Posted: Wed Jan 20, 2010 3:01 pm
by atom
great thanks