We could create IAText2 and add this method.  Are there any issues with
this proposal?  (I'd have to look though my docs to see what else we
might have talked about over the last year or two that could also be
added for IAText2.)

Pete
-- 
*Pete Brunet*
                                                                
a11ysoft - Accessibility Architecture and Development
(512) 238-6967 (work), (512) 689-4155 (cell)
Skype: pete.brunet
IM: ptbrunet (AOL, Google), [email protected] (MSN)
http://www.a11ysoft.com/about/
Ionosphere: WS4G

Arnstein Skåra wrote:
> Hi!
>
> A brief description of the current situation:
> 1.Place caret within a paragraph.
> 2.Get the focused IAccessible object.
> 3.Traverse it's children to find the IAccessible2 object containing the caret.
>
> This approach is how you are supposed to do it, according to the 
> implementation guide.
> It is a very time consuming operation. An example of how bad it can get is 
> www.inetword.com.
>
> Alexander Surkov proposed a method to deal with it:
>
> [propget] HRESULT accessibleWithCaret ([out, retval] IUnknown **accessible);
>
> Returns the accessible object containing the caret.  If the caret is in
> an accessible in a tree of accessibles the returned accessible is the
> one actually containing the caret, i.e. a leaf node in the
> accessibility tree.
>
> Parameters:
>
>      [out] accessible   The returned accessible contains the caret.
>
> Returned Values:
>
>      S_OK
>      S_FALSE   if there is no accessible in the entire accessible hierarchy 
> containing a caret
>
>
> - Arnstein
>
> _______________________________________________
> Accessibility-ia2 mailing list
> [email protected]
> https://lists.linux-foundation.org/mailman/listinfo/accessibility-ia2
>
>   
_______________________________________________
Accessibility-ia2 mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/accessibility-ia2

Reply via email to