Ole4D Methods

OCSetVisible(p_AreaVar;p_Visible)


Displays / hides the ole object activated within the plug-in area.

Parameters
Parameter Type   Description
p_AreaVar Longint -> Variable of the plug-in area.
p_Visible Longint -> 0 – to hide the OLE object
1 – to show the OLE object



Return Values
The operating system code of invalid parameter error - if the area sent as parameter does not exist or p_Visible is different then 0,1.

Note
You should not hide the OLE object before activating it.
After hiding the OLE object you have to execute also a REDRAW WINDOW command to make sure the plug-in area is redraw properly.