DynaPDF Manual - Page 711

Previous Page 710   Index   Next Page 712

Function Reference
Page 711 of 839
SetFieldBBox
Syntax:
LBOOL pdfSetFieldBBox(
const PPDF* IPDF,
// Instance pointer
UI32 AField,
// Field handle
struct TPDFRect* BBox) // The new bounding box
The function changes the bounding box of a field. The bounding box must be defined in bottom up
coordinates. The Top member of the structure BBox must be larger than Bottom as well as Right
must be larger than the Left member.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetFieldBorderColor
Syntax:
LBOOL pdfSetFieldBorderColor(
const PPDF* IPDF, // Instance pointer
UI32 AColor)
// Border color
The function sets the border color used for newly created interactive form fields and annotations.
Normal annotations support RGB colors only. Form fields support the color spaces DeviceRGB,
DeviceGray and DeviceCMYK. The color value must be defined in the current color space.
If the border should appear transparent set the color to NO_COLOR.
#define NO_COLOR 0xFFFFFFF1
Default value = 0 // Black
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetFieldBorderStyle
Syntax:
LBOOL pdfSetFieldBorderStyle(
const PPDF* IPDF,
// Instance pointer
UI32 AField,
// Field handle
TBorderStyle Style) // Border style
typedef enum
{
bsSolid
= 0, // Solid border
bsBevelled
= 1, // Bevelled border
bsInset
= 2, // Inset border
bsUnderline
= 3, // Underline only
bsDashed
= 4, // Dashed border
bsUserDefined = 5
// Not allowed
}TBorderStyle;
 

Previous topic: SetExtGState, SetExtStrokeColorSpace, SetFieldBackColor

Next topic: SetFieldBorderWidth, SetFieldCalcOrder