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