OSDN Git Service

No longer always fall back to using the MSAA childID and accChildCount as position...
authorMichael Curran <mick@kulgan.net>
Wed, 22 Sep 2010 19:30:24 +0000 (05:30 +1000)
committerMichael Curran <mick@kulgan.net>
Wed, 22 Sep 2010 19:30:24 +0000 (05:30 +1000)
commitae6155fdd8b98a3f4c69d5c64754784f44e4b90c
tree88168a6035d072787f337b4a9572899d261179d7
parent653fac5f5ce78685df9f0fc7f26e2c2b62bebf15
No longer always fall back to using the MSAA childID and accChildCount as position information. In many cases this information was always wrong (e.g. incorrect position information for menu items, task bar buttons etc). Specific changes:
*IAccessible NVDAObject: add a 'allowIAccessibleChildIDAndChildCountForPositionInfo' class variable, which the positionInfo property now checks. If true then it will fall back to using childID and accchildCount, if there is no richer IAccessible2 info available. This class variable is set to False by default.
*TaskListIcon IAccessible NVDAObject: set allowIAccessibleChildIDAndChildCountForPositionInfo to True as position info from MSAA is always correct, and quite useful gere,
*SysListView32ListItem IAccessible NVDAObject: rewrite the positionInfo property so that it does not rely on the super implementation, but instead specifically grabs what it needs.
source/NVDAObjects/IAccessible/__init__.py
source/NVDAObjects/IAccessible/sysListView32.py