ReleaseComObject - cCJCommandBarSystem
Called when the commandbar system object is being deactivated
Type: Procedure
Syntax
Procedure ReleaseComObject
Call Example
Send ReleaseComObject
Description
ReleaseComObject is called when the Commandbar system object is being deactivated. It destroys the COM object and all of the child COM objects created. It does not destroy the proxy DataFlex objects. You will never call this method and you will rarely augment it. It is useful to understand what it does.
When a cCJCommandBarSystem object is deactivated, ReleaseComObject does the following:
-
It shuts off the idle timer.
-
It calls SaveEnvironment which optionally saves the layout information.
-
It makes sure that all COM objects owned by this object are released.
-
If calls OnRelease which is an event that you can use to handle any special deactivation logic.
-
It forward sends ReleaseComObject, which releases the object.
Note
The message CreateCommandBars is called when the commandbar system object is activated.