Carbon application listing non-windowed accessible objects
Carbon application listing non-windowed accessible objects
- Subject: Carbon application listing non-windowed accessible objects
- From: Felipe Monteiro de Carvalho <email@hidden>
- Date: Thu, 12 Jan 2012 07:43:06 -0200
Hello,
I have a HIView which is a tree view, but it is fully implemented in
my code, there are no Carbon elements inside it, so there are no other
HIViews inside it and I would like to make the child items of the tree
view accessible.
So far I managed to install an event handler for the accessibility
events and report AXFocused, AXChildren, AXRole, etc, but I have many
questions:
1> If I create an accessibility object, how can I report it's
information then? It is *not* a HIView, just a virtual object which
only exists in my code, so it has no Carbon event handler... so far I
tryed:
var
lElement: AXUIElementRef;
begin
lElement := MacOSAll.AXUIElementCreateSystemWide();
But it doesn't do anything useful. Should I instead create the child
objects all attached to the same main HIView? How will I know then in
the event handler to which object this is being called?
2> How can I best represent a treeview?
So far I am using AXBrowser, but it is annoying because I would have
to add more sub-objects inside it ... can I just go directly for
AXList for my main tree control and AXStaticText for the items?
3> How can I tell Carbon that in releality one of the items is
selected? AXTopLevelUIElement?
4> Can I mix Carbon and Cocoa accessibility? Because I found no API in
Carbon to send the notification that the text or text selection of a
control changed, so I was thinking about using NSAccessibility
thanks,
--
Felipe Monteiro de Carvalho
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden