Re: Menu bug?
Re: Menu bug?
- Subject: Re: Menu bug?
- From: Eric Schlegel <email@hidden>
- Date: Sat, 15 Mar 2003 11:20:01 -0800
On Saturday, March 15, 2003, at 07:04 AM, Bill Cheeseman wrote:
But when you get the
AXChildren of a menu bar, they show only AXMenus, omitting the
apparently
spurious intervening AXMenuItems. It appears that one way of viewing
the
menu bar hierarchy (getting the element at a point on the screen)
shows a
different hierarchy than the other way of viewing it (AXChildren).
This is just a bug. The Menu Manager attempts to always present a view
of the menu hierarchy as you see it using GetElementAtPoint: the
children of menus are menu items, the children of menu items are
submenus, and the menubar is just another menu (the root menu).
However, the implementation of GetChildren for the root menu actually
returns menu objects, not menu item objects. It should be returning
menu item objects.
The menubar gets its own role, but we attempt to present it as just
another menu (and that is how it is implemented internally). The
menubar is just a Carbon MenuRef that contains one item per menu that
you see in the menubar, and each item has a submenu. The submenu is
what you see when you pull down a menu in the menubar. For consistency,
our goal is to keep the same parent/child structure all the way up and
down the hierarchy, including at the menubar.
-eric
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.