Changeset 2138

Show
Ignore:
Timestamp:
06/17/08 01:22:37 (7 months ago)
Author:
mdcurran
Message:

IAccessible NVDAObject's parent property: support Windows standard Groupbox objects so that if the NVDAObject is apparently with in one of these, the groupbox gets returned as the parent, rather than its real parent. Note that the groupbox is always on the same level as the NVDAObject so if you go parent on the groupbox, you end up at the NVDAObject's parent. All this means that NVDA will again announce a grouping as focus enters it. Example is the Advanced tab in the System dialog, in Control pannel.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/NVDAObjects/IAccessible/__init__.py

    r2136 r2138  
    466466                                if newObj: 
    467467                                        return newObj 
     468                #Support for groupbox windows 
     469                groupboxObj=IAccessibleHandler.findGroupboxObject(self) 
     470                if groupboxObj: 
     471                        return groupboxObj 
    468472                res=IAccessibleHandler.accParent(self.IAccessibleObject,self.IAccessibleChildID) 
    469473                if res: