DynaPDF Manual - Page 412

Previous Page 411   Index   Next Page 413

Function Reference
Page 412 of 839
Return values:
If the function the function succeeds the return value is the text alignment used by the field. If the
function fails the return value is a negative error code.
GetFieldTextColor
Syntax:
UI32 pdfGetFieldTextColor(
const PPDF* IPDF) // Instance pointer
The function returns the default text color used for newly created fields.
GetFieldToolTip
Syntax:
SI32 pdfGetFieldToolTip(
const PPDF* IPDF,
// Instance pointer
UI32 AField,
// Field handle
void* ADDR Value,
// Pointer to value (null-terminated string)
LBOOL ADDR Unicode) // If true, Value is an Unicode string
The function retrieves a pointer to the tool tip string of a specific interactive form field. The
parameter AField must be a valid field handle. The parameter Value gets a pointer to the original
string value, it must not be NULL. Do not change the or free the value. Depending on whether
Unicode is true, Value is pointer to a null-terminated Unicode string.
Return values:
If the function succeeds the return value is 1 and the parameters Value and Unicode are filled with
values. If the function fails the return value is 0.
GetFieldType
Syntax:
SI32 pdfGetFieldType(
const PPDF* IPDF, // Instance pointer
UI32 AField)
// Field handle
typedef enum
{
ftButton
= 0,
ftCheckBox
= 1,
ftRadioBtn
= 2,
ftComboBox
= 3,
ftListBox
= 4,
ftText
= 5,
ftSignature = 6,
ftGroup
= 7
}TFieldType;
The function returns the field type. The parameter AField must be a valid field handle.
 

Previous topic: GetFieldOrientation, GetFieldTextAlign

Next topic: GetFileSpec, GetFillColor