DynaPDF Manual - Page 658

Previous Page 657   Index   Next Page 659

Function Reference
Page 658 of 777
SetFieldBorderWidth
Syntax:
LBOOL pdfSetFieldBorderWidth(
const PPDF* IPDF, // Instance pointer
UI32 AField,
// Field handle
double LineWidth) // Line width of the border
This function can be used to change the border width of a field. The parameter AField must be a valid
field handle. The parameter LineWidth must not be negative and it should either be 0, 1, 2, or 3 units
(no border, thin, medium, or thick). Note that Adobe's Acrobat supports only these values. It is
possible to draw a field with any border width, but if the field is repainted due to a reset action or
due to other changes, the field appearance will be changed in Adobe's Acrobat and the border width
is adjusted to the nearest supported value.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetFieldCalcOrder
Syntax:
LBOOL pdfSetFieldCalcOrder(
const PPDF* IPDF, // Instance pointer
SI32 CurrIndex,
// Current calc order index
UI32 NewIndex)
// New calc order index
The function moves a field in the global calc order array. This is the order in which field values will
be recalculated when the value of any field changes.
The current calc order can be accessed with GetFieldCalcOrder(). The calc order array contains field
handles. A field handle is a simple array index.
Example:
// Assume the current calc order array looks as follows:
calcOrder[0] = 5;
calcOrder[1] = 9;
calcOrder[2] = 45;
calcOrder[3] = 122;
// Move the field of index 1 to index 3
pdfSetFieldCalcOrder(pdf, 1, 3);
// Result:
calcOrder[0] = 5;
calcOrder[1] = 45;
calcOrder[2] = 122;
calcOrder[3] = 9;
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetFieldBorderColor, SetFieldBorderStyle

Next topic: SetFieldColor, SetFieldExpValue