Re: Menu actions
Re: Menu actions
- Subject: Re: Menu actions
- From: Eric Schlegel <email@hidden>
- Date: Tue, 12 Nov 2002 10:50:54 -0800
On Tuesday, November 12, 2002, at 10:01 AM, Bill Cheeseman wrote:
When I attempt to perform a Pick or Press action on a menu or menu
item when
the application is not frontmost, AXUIElementPerformAction returns
kAXErrorSuccess. But the menu doesn't actually open, and the menu item
isn't
actually performed, because the target application isn't frontmost.
Shouldn't I get an error instead of kAXErrorSuccess?
Probably. Even better would be for the Pick to actually work. :)
And while I'm on the subject of menus and menu actions, why do they
support
both the Pick and the Press action? They seem to do the same thing.
Historical artifact. I started out with one of the actions, but the
Speech Recognition team wanted the other one, so menus wound up
supporting both.
And how do I close an AXMenu UIElement once I've picked it? If I send
it a
Cancel action, it closes, but there is an extra flash so that it looks
as if
it was opened and closed twice in a row, rapidly. And there seems to
be a
timing problem, in that sending Cancel immediately after Pick sometimes
doesn't close the menu.
I don't know what's going on there. Please file a bug if you think
there's a problem here that needs to be addressed.
-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.
References: | |
| >Menu actions (From: Bill Cheeseman <email@hidden>) |