CreateUDO

<< Click to Display Table of Contents >>

Navigation:  UDO - User Defined Objects >

CreateUDO

Previous pageReturn to chapter overviewNext page

[Professional Edition and above, not available for Java, PHP, Python, Ruby]

Creates a User Defined Object (UDO). lParam can be of any value and is for your private use to identify the object later during processing the DoUDOPaint() (VCL: OnUDOPaint(), .NET: UDOPaint()).

method void VPE.CreateUDO(

VpeCoord Left,

VpeCoord Top,

VpeCoord Right,

VpeCoord Bottom,

long lParam

)

VpeCoord Left, Top, Right, Bottom

position and dimensions of the UDO

long lParam

numeric ID to identify the UDO during the DoUDOPaint() event (VCL: OnUDOPaint(), .NET: UDOPaint())

Example:

see UDODC

Remarks:

Special care must be taken, when creating VPE Document files that contain pictures or UDO's.
For details please see WriteDoc.

 

VPE offers several methods to attach an object's position to margins and relative to the position of previously inserted objects. In addition Text, Rich Text and Picture objects are able to compute their dimensions automatically depending on their visual content.
For details please see "Dynamic Positioning" in the Programmer's Manual.