Menu events are generated when the user opens or closes a menu or when programmatic changes are made to the application (such as enabling a menu item).
Table C-4. Parameter Names and Types for Menu Event Kinds
Event kind | Parameter name | Parameter type |
---|---|---|
kEventMenuBeginTracking
|
kEventParamDirectObject
|
typeMenuRef
|
kEventParamCurrentMenuTrackingMode
|
typeMenuTrackingMode
| |
kEventMenuEndTracking
|
kEventParamDirectObject
|
typeMenuRef
|
kEventMenuOpening
|
kEventParamDirectObject
|
typeMenuRef
|
kEventParamMenuFirstOpen
|
typeBoolean
| |
kEventMenuClosed
|
kEventParamDirectObject
|
typeMenuRef
|
kEventMenuTargetItem
|
kEventParamDirectObject
|
typeMenuRef
|
kEventParamMenuItemIndex
|
typeMenuItemIndex
| |
kEventParamMenuCommand
|
typeMenuCommand
| |
kEventMenuMatchKey
|
kEventParamDirectObject
|
typeMenuRef
|
kEventParamEventRef
|
typeEventRef
| |
kEventParamMenuEventOptions
|
typeMenuEventOptions
| |
kEventParamMenuItemIndex
|
typeMenuItemIndex
| |
kEventMenuEnableItems
|
kEventParamDirectObject
|
typeMenuRef
|
kEventParamEnableMenuForKeyEvent
|
typeBoolean
|