Re: FocusedUIElement notification for menus and menu items
Re: FocusedUIElement notification for menus and menu items
- Subject: Re: FocusedUIElement notification for menus and menu items
- From: "Reinder Verlinde" <email@hidden>
- Date: Tue, 28 Oct 2003 09:12:55 +0100
From: Eric Schlegel <email@hidden>
Subject: FocusedUIElement notification for menus and menu items
Date: Mon, 27 Oct 2003 11:36:12 -0800
In Mac OS X 10.2 and 10.3, the Menu Manager sends an
AXFocusedUIElementChanged notification as the user moves the mouse from
one menu item to another.
>
It has been suggested to me that a more appropriate/consistent use of
>
the focused UI element concept for menus would be for the menu itself
>
to be the focused element, and that therefore, the Menu Manager
should
>
only send this notification when the selected menu changes, and not
>
when the selected menu item changes.
I think you first should think of a model for the menu UI. For
example:
- a menu is a window with controls (typically command buttons, but
sometimes checkboxes or radio button groups)
=> when a menu opens, send a 'menu activated' event
=> when the user moves the mouse, send a 'focus changed' event
=> when the user clicks on an item, send 'item activated' ('value
changed' would be even better for menu items that behave like
checkboxes or radio button groups)
- a menu is like a radio button group or tab control (a 'one out of
many' control)
=> when a menu opens, send a 'focus changed' event
=> when the user moves the mouse, send a 'value changed' event
I think that the first model better fits what a menu is. I also think
that that model is more robust w.r.t. likely extensions of menus, such
as floating menus (where one can toggle say an 'italic' item by clicking
on it)
Pop-up menus, on the other hand, probably are completely different
beasts. These are a radio button group or tab control replacement that
use less screen reals estate. For those, the second model seems more
suitable
=> If would consider only following the earlier suggestion for pop-up
menus (first, check out real-world usage of pop-ups, though)
Reinder
_______________________________________________
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.