Skip to content

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:

  1. It shuts off the idle timer.

  2. It calls SaveEnvironment which optionally saves the layout information.

  3. It makes sure that all COM objects owned by this object are released.

  4. If calls OnRelease which is an event that you can use to handle any special deactivation logic.

  5. It forward sends ReleaseComObject, which releases the object.

Note

The message CreateCommandBars is called when the commandbar system object is activated.