Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Menu Item Role

An accessibility object of the menu item role includes the following attributes as shown in Table B-20:

Table B-20  Attributes associated with the menu item role

Attribute

Required

Type

Description

Parent

Yes

UIElement

Accessibility object representing the menu item’s parent

Position

Yes

Point value

Structure containing screen-position coordinates

Size

Yes

Size value

Structure containing width and height values

Help

No

String

Help-tag text for the menu item

Enabled

Yes

Boolean

true if the user can interact with the menu item; false otherwise

Title

Yes

String

Accessibility object representing the title of the menu item

Selected

Yes

Boolean

true if the menu item is selected; false otherwise

Menu Item Command Character

No

String

Primary key in the keyboard shortcut for the command this menu item represents. Required if applicable.

Menu Item Command Virtual Key

No

String

Key code associated with the physical key in the keyboard shortcut for the command this menu item represents. Required if applicable.

Menu Item Command Glyph

No

String

Glyph displayed for a physical key in the keyboard shortcut for the command this menu item represents. Required if applicable.

Menu Item Command Modifiers

No

String

Integer mask representing the modifier keys held down in the keyboard shortcut for the command this menu item represents. Required if applicable.

Menu Item Mark Character

No

String

Symbol displayed to the left of this menu item. Required if applicable.

Menu Item Primary UIElement

No

UIElement

Accessibility object representing the object that displays the menu in which this menu item is contained

Serves as Title for UIElements

No

UIElement array

The accessibility object representing the menu that is the child of this object

An accessibility object of the menu item role can support the following actions:



< Previous PageNext Page > Hide TOC


Last updated: 2008-03-11




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice