DynaPDF Manual - Page 397

Previous Page 396   Index   Next Page 398

Function Reference
Page 397 of 839
Note that choice values can be inherited from a parent group field. This is the case if the field is part
of a field group. See "Interactive Forms/What is a Field Group?" for further information.
Radio buttons can define export values for their children. Since radio buttons contain these values,
they are not returned by GetFieldEx() or GetPageFieldEx(). The export values are stored in the same
order as the Kids array of the structure TPDFFieldEx.
The member StructSize of the structure TPDFChoiceValue must be initialized with
sizeof(TPDFChoiceValue) before calling the function because this member is used to identify
different versions of the structure. All other members can be left uninitialized.
The returned string values can be in Unicode or Ansi format but only one string format is set at
time.
Return values:
If the function succeeds the return value is 1 and the parameter Value is filled with values. If the
function fails the return value is 0.
GetFieldColor
Syntax:
SI32 pdfGetFieldColor(
const PPDF* IPDF,
// Instance pointer
UI32 AField,
// Field handle
TFieldColor ColorType, // Which color should be returned?
SI32 ADDR ColorSpace,
// Color space see TPDFColorSpace
UI32 ADDR Color)
// Color value
typedef enum
{
fcBackColor
= 0,
fcBorderColor = 1,
fcTextColor
= 2
}TFieldColor;
typedef enum
{
csDeviceRGB
= 0,
csDeviceCMYK = 1,
csDeviceGray = 2
}TPDFColorSpace;
The function retrieves a specific color of an interactive form field. The parameter AField must be a
valid field handle. The parameter ColorSpace defines the color space in which the color was defined.
Return values:
If the function succeeds the return value is 1 and the parameters ColorSpace and Color are filled with
values. If the function fails the return value is 0.
 

Previous topic: GetFieldChoiceValue

Next topic: GetFieldCount, GetFieldEx