Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 633

Previous Page 632   Index   Next Page 634

Function Reference
Page 633 of 750
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;
The function changes the border style of a specific Interactive Form field. The parameter AField must
be a valid field handle.
Remarks:
It is not possible to change the border style of imported button fields. The global border style which
is used for newly created fields can be set with the function SetBorderStyle().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetFieldBBox

Next topic: SetFieldColor