Hi, Pete.

The issue is we want to avoid to check whether caret is inside of text
accessible that this method is called for. Perhaps this method should
be defined on top level accessible like application accessible. It
should work until AT want to know whether the caret is contained by
some text accessible, i.e. if AT need to get is a direct text
accessible having a caret and caret offset within it.

Also it makes sense to consider different version of the method that
returns caret offset additionally like:
[propget] HRESULT accessibleWithCaret ([out, retval] IUnknown
**accessible, [out] long* caretOffset);

Thank you.
Alex.


On Wed, Dec 8, 2010 at 11:30 PM, Pete Brunet <[email protected]> wrote:
> 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
>
>
_______________________________________________
Accessibility-ia2 mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/accessibility-ia2

Reply via email to