Ole4D Methods

OCSetDrawMode(p_AreaVar;p_Mode)


Allows to set the view mode of the object in its plug-in area. Currently only two view modes are supported: stretched and not stretched. When the stretch mode is set the view of the object is drawn stretched to fit the rectangle of the plug-in area.

Parameters
Parameter Type   Description
p_AreaVar Longint -> Variable of the plug-in area.
p_Mode Longint -> Can have two values
0 – no stretch, use the original representation of the object to draw the content.
1 – stretch draw( default)


Return Values
0 – In case that the methods call was successful.
If the area sent as parameter is invalid the return value is the operating system code of invalid parameter error.

Remarks
The value set for stretch draw is persistent; it is saved and loaded in Blobs during calls to OCSaveToBlob and OCCreaFromBlob.