OnComInitCommandsPopup - cCJCommandBarSystem
Called when a popup menu or tool bar item is executed via a mouse click or keyboard enter
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| llCommandBar | Variant | Pointer to the COM cCJCommandBar object that was executed. |
Syntax
Procedure OnComInitCommandsPopup Variant llCommandBar
Description
The OnComInitCommandsPopup event is called when a popup menu or tool bar item is executed via a mouse click or keyboard enter action. The event is passed the COM dispatch pointer of the item's cCJCommandBar object. It uses this pointer to locate the selected popup item's action and sends the message OnPopupInit to the object that owns this action. If an object cannot be found that owns the selected action, the message OnUnhandledInitCommandsPopup is sent.
The purpose of the event is to direct this event to the appropriate object. This event uses specific logic to do this and you are not encouraged to make changes. The popup menu item event OnPopupInit and the cCJCommandBarSystem event OnUnhandledInitCommandsPopup are the events that should be used for customization.
Note that the OnComInitCommandsPopup event is called when a popup menu item is selected. When a non popup menu item is selected, OnComExecute is called.
The parameter passed is a pointer to the cCJCommandBar COM object. This object is a child of the COM object that was actually selected (cCJMenuItem).