Page 1 of 1

Custom accessible name, description is not visibl in Ranorex

Posted: Mon Feb 06, 2017 7:27 am
by sivakumaran
dear all,
I have a query.

I have a Microsoft property grid control
I wanted to provide my own Acc name and description for this grid conrol
I derived MyPropertyGrid from Property grid
I overridden CreateAccessibilityInstance() method to return an custom Accessible object
My custom accessible object is MyPropGridAccObject that is derived from ControlAccessibleObject
my overridden Acc name and Acc description do appear in the Microsoft tool Accessibility explorer
but it is not available to Ranorex spy tool.
so I doubted it could be the problem with this specific property grid control
so I tried with a simple button control on similar lines
but nothing worked
I am attaching the source code that I tried.

Can you please tell me, what is wrong that I am doing?

thanks,
Siva

Re: Custom accessible name, description is not visibl in Ranorex

Posted: Wed Feb 08, 2017 4:15 pm
by asdf
Hi sivakumaran,

May I ask you which tool you used to verify the accessible name? Unfortunately, I can't find the "Microsoft tool Accessibility explorer".

Kind regards,
asdf

Re: Custom accessible name, description is not visibl in Ranorex

Posted: Thu Feb 09, 2017 8:21 am
by odklizec
Hi asdf,

It's called MS Inspect and it was discussed for example here:
http://www.ranorex.com/forum/how-to-ide ... tml#p17635

Re: Custom accessible name, description is not visibl in Ranorex

Posted: Fri Feb 10, 2017 3:22 pm
by asdf
Hi odklizec,

Thanks for clarification.

I created a sample application according to your needs and I found out that you are able to see the "new" accessible name when you set the following MSAA setting in Ranorex Studio to false.
MSAA.png
You can just download my sample application, turn off the above setting and track the button in the sample.
You will see that there is a second button in the Spy which has the newly set accessible name.

I hope this helps.

Kind regards,
asdf