OnSelected - cCJAction
Event that is called when an action (a menu item or toolbar item) is "selected" via a mouse hover over or keyboard navigation
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| vCommandBarControl | Variant | Pointer to the COM control that was selected. If used, this must be bound to a DataFlex proxy object, which should be based |
Syntax
Procedure OnSelected Variant vCommandBarControl
Description
OnSelected is called when you hover over a menu or toolbar item with the mouse or when you keyboard navigate to a menu item. It is called after the tool tip (psTooltip) and description (psDescription) is displayed.
The vCommandBarControl is a pointer to the COM control that was selected. If you need to use this object you will need to create a DataFlex proxy object based on cCJCommandBarControl or one of its sub-classes, bind the pointer to this object, use it, and destroy it. It is unlikely that you will ever need to do this.