Re: Menu bug?
Re: Menu bug?
- Subject: Re: Menu bug?
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 24 Jul 2003 12:15:12 -0400
Eric,
(Tell me if you would rather I not address you directly with the occasional
message like this. I don't want to get in your way.)
You sent me the message reproduced below, in March. I've lately been running
my PreFab UI Browser app under Panther using the new AXParent accessible
attribute stuff relating to menus and submenus. I find that the bug you
described below in Jaguar is still present in Panther WWDC Developer Preview
(a mismatch between the menu bar's children and the menus' parents).
I think we had some follow-up correspondence about this, but I've mislaid
it. If you're able to tell me that this is the way things will remain, I'll
start working on a solution for my app. Otherwise, I'm going to set this
issue aside and hope it will be addressed before Panther is released.
Thanks for any light you can shed on this.
on 03-03-15 2:20 PM, Eric Schlegel at email@hidden wrote:
>
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.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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.