Ole4D Methods

OCGetToolBarRect(p_AreaVar;p_Top;p_Left;p_Bottom;p_Right)


Gets the coordinates of the rectangle in which the object can put toolbars.
The coordinates are relative to the top-left corner of the window containing the area.

Parameters
Parameter Type   Description
p_AreaVar Longint -> Variable of the plug-in area.
p_Left Longint <- Left side
p_Top Longint <- Top side
p_Right Longint <- Right side
p_Bottom Longint <- Bottom side

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
This method is the pair of OCSetToolBarRect.
Some Ole objects will not activate in place if the toolbar space is too small.

Example
`restrict the toolbar rectangle
$i:=OCSetToolBarRect (OCONT1;100;0;800;450)
$i:=OCUpdateToolBar (OCONT1)
`allow the object to put the toolbars anywhere on plug-in window
$i:=OCSetToolBarRect (OCONT1;0;0;0;0)
$i:=OCUpdateToolBar (OCONT1)


See Also
OCSetToolbarRect, OCUpdateToolbar, OCEnableToolbars