An accessibility object of the menu item role includes the following attributes as shown in Table B-20:
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 |
|
Title | Yes | String | Accessibility object representing the title of the menu item |
Selected | Yes | Boolean |
|
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:
Cancel. When the confirm action is performed, menu tracking is canceled.
Press. When the press action is performed, this menu item is chosen, if selected.
Last updated: 2008-03-11