A menu bar is the area of a window immediately beneath the title bar that contains menu items such as File, Edit, Window, and Help. Active Accessibility also creates a menu bar object for a system menu, which is the menu in the top left corner of the title bar and contains menu items such as Restore, Move, Size, Minimize, and Maximize.
Note Since menu bar controls do not receive focus, accSelect and get_accFocus methods are not supported for this control.
Supported Properties and Methods
- Retrieves the IDispatch interface for the specified menu item. The child IDs for the menu items are numbered sequentially from left to right starting with one.
- The ChildCount property is the number of menu items on the menu bar. The ChildCount property for a system menu is one.
- The Description property for a menu bar is "Contains commands to manipulate the current view or document". The Description property for a system menu is "Contains commands to manipulate the window".
- The KeyboardShortcut property for a menu bar beneath the title bar is "Alt". The KeyboardShortcut property for a system menu is "Alt+Space".
- The Name property for a menu bar beneath the title bar is "Application". The Name property for a system menu is "System".
- The Role property is ROLE_SYSTEM_MENUBAR.
- The State property is a combination of one or more of the following values:
STATE_SYSTEM_INVISIBLE | STATE_SYSTEM_FOCUSED | STATE_SYSTEM_FOCUSABLE
The system triggers more than one EVENT_SYSTEM_MENUSTART event that does not always have a corresponding EVENT_SYSTEM_MENUEND event. Additionally, the system does not trigger the EVENT_SYSTEM_MENUPOPUPSTART and EVENT_SYSTEM_MENUPOPUPEND events consistently. This is a known issue and is being addressed.