OnUnhandledExecute - cCJCommandBarSystem
Called when OnComExecute cannot find an item object to send the OnExecute event to
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 OnUnhandledExecute 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, this message, OnUnhandledExecute, is sent.
OnUnhandledExecute should normally not get called. This can occur in special cases where dynamic menu items are created that have no cCJMenuItem object counterpart. This message is designed to handle this case. Note that this event being called might also point to a programming error.