OnCreateAction - cCJAction

Event called when the action is activated (COM object created)

Type: Event

Parameters: None

Syntax
Procedure OnCreateAction 

Description

OnCreateAction is called when the COM action is created. This event can be used to set COM properties that could not be set by the object's standard (non-COM) properties.

When a commandbar system is activated, the entire menu, toolbar and status bar system is created. COM objects are created for each item's action and its control. Typically a cCJMenuItem, a sub-class of cCJAction is used to create both the action and the control. OnCreateAction is called when the action is created. OnCreateControl is called when the control is created. OnCreateAction is called by CreateComAction.

Once a COM action is created it remains bound to the DataFlex proxy object until the commandbar system is deactivated or until the DataFlex object is destroyed.