RenderFormField

<< Click to Display Table of Contents >>

Navigation:  Rendering >

RenderFormField

Previous pageReturn to chapter overviewNext page

[Enterprise Edition and above]

Computes the dimensions of a given  FormField text, based on the method FormField. The dimensions are computed including the surrounding frame, if PenSize is <> 0.

int VPE.RenderFormField(

VpeCoord x,

VpeCoord y,

VpeCoord x2,

VpeCoord y2,

LPCSTR s

)

VpeCoord x, y, x2, y2

position and dimensions, y2 may be set to VFREE

LPCSTR s

the text to be rendered

Returns:

The method always returns

ActiveX / VCL

Value

Enum

Comment

RENDER_NO_BREAK

0

NoPageBreak

NO Auto Page Break will occur

Remarks:

If x2 = VFREE, the FormField will behave the same as if VpeWrite(Box) was used.

 

The computed dimensions can be retrieved with the properties:

nRenderWidth and nRenderHeight

 

See also:

"Rendering Objects" in the Programmer's Manual