Skip to content

OnUnhandledControlSelected - cCJCommandBarSystem

Called when OnComControlSelected cannot find an item object to send the OnControlSelected event to

Type: Event

Parameters

Parameter Type Description
llControl Variant Pointer to the COM object that was selected. If used this must be bound to a DataFlex proxy object

Syntax

Procedure OnUnhandledControlSelected Variant llControl

Description

The OnComControlSelected event is called when a menu or tool bar items is selected via a mouse hover or cursor selection. The event is passed the COM dispatch pointer. It uses this pointer to locate the selected item's action and sends the message OnSelected to the object that owns this action. If an object cannot be found that owns the selected action, this message, OnUnhandledControlSelected, is sent.

OnUnhandledControlSelected 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.