Page 1 of 1
[Issue] getAccessibleContext().doAccessibleAction(0)
Posted: Wed May 07, 2014 11:20 pm
by sevalav
Hello,
With AOO 4.1. I have problem with my Calc document. I can not working with my dialog because this line of my code in Basic:
ComboBox3.getAccessibleContext().doAccessibleAction(0).
This line of code make visible content on dropdown list of combobox. This code is calling automatically, when combobox recive focus.
I get message: TYPE: com.sun.star.lang.IndexOutOfBoundsException
In AOO 4.0.1 everything working fine.
Does anyone have the same problem?
Re: Problem with getAccessibleContext().doAccessibleAction(0
Posted: Thu May 08, 2014 8:03 am
by hanya
getAccessibleActionCount method returns 0 for combobox on AOO 4.1.0. But 1 on AOO 4.0.1.
Edit: Fix wrong method name. |
Re: Problem with getAccessibleContext().doAccessibleAction(0
Posted: Thu May 08, 2014 8:24 am
by B Marcelly
Check the value of getAccessibleActionCount(). It is probably zero.
AOO 4.1 Release Notes wrote:Support for iAccessible2
OpenOffice 4.1 Windows version integrates IAccessible2 support and drops the legacy Java access bridge, offering better integration with top screen readers such as JAWS and NVDA. This feature will activate automatically when MSAA/IA2 compatible screen reader is running. Numerous accessibility enhancements and bug fixes are delivered in Writer, Impress, and Calc. OpenOffice 4.1 brings a much better user experience for Windows users with visual impairments than previous versions.
The API may have changed.
Re: Problem with getAccessibleContext().doAccessibleAction(0
Posted: Thu May 08, 2014 9:04 am
by hanya
VCLXAccessibleBox::getAccessibleActionCount method should return 1 if m_bIsDropDownBox is true but current code returns 0 for dropdown and returns 1 for non-dropdown one.
Re: Problem with getAccessibleContext().doAccessibleAction(0
Posted: Thu May 08, 2014 4:44 pm
by sevalav
Thanks for reply. Now, what will be solution for me? I mean, what changes is needed that my code working properly?
Re: Problem with getAccessibleContext().doAccessibleAction(0
Posted: Thu May 08, 2014 5:36 pm
by hanya
It seems there is no workaround for this problem. I could not find any API to change internal flag mentioned above.
I reported the problem as the following issue:
https://issues.apache.org/ooo/show_bug.cgi?id=124856