VpeRenderFormField

<< Click to Display Table of Contents >>

Navigation:  Rendering >

VpeRenderFormField

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 VpeRenderFormField(

VpeHandle hDoc,

VpeCoord x,

VpeCoord y,

VpeCoord x2,

VpeCoord y2,

LPCSTR s

)

VpeHandle hDoc

Document Handle

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

Constant Name

Value

Comment

RENDER_NO_BREAK

0

NO Auto 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

VpeGet(hDoc, VRENDERWIDTH)

VpeGet(hDoc, VRENDERHEIGHT)

 

See also:

"Rendering Objects" in the Programmer's Manual