Ole4D Methods

OCEnableToolBars(p_AreaVar;p_Enable)


Enable/disable the Ole object to put toolbars.

Parameters
Parameter Type   Description
p_AreaVar Longint -> Variable of the plug-in area.
p_Enable Longint -> Can have two values
0 for disable toolbars, 1 for enabling the toolbars.


Return Values
0 – The method call was successful.
if the method call was not successful the return value is non zero. For more information call OCLastError.

Remarks
OCEnableToolBars can be called no matter if the plug-in area contains an Ole object or not. However, when the area contains an object you have to call OCUpdateToolBar to apply toolbar rectangle change.
Some ole objects will not activate in place if their toolbar space is denied.

Example
`hide toolbars
$i:= OCEnableToolBars (OCONT1;0)
`handle eventual errors ……
 $i:= OCCreaFromProgId(OCONT1;”WordDocument”)
`handle eventual errors ……
$i:= OCActivate(OCONT1)

See Also
OCUpdateToolbar