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

DynaPDF Manual - Page 353

Previous Page 352   Index   Next Page 354

Function Reference
Page 353 of 750
struct TPDFChoiceValue* Value) // See below
struct TPDFChoiceValue
{
UI32 StructSize;
// Must be initialized with sizeof(TPDFChoiceValue)
char* ExpValueA;
// Export value (optional)
UI16* ExpValueW;
// Export value (optional)
UI32 ExpValueLen; // Export value length in characters
char* ValueA;
// Value (can be an empty string or NULL)
UI16* ValueW;
// Value (can be an empty string or NULL)
UI32 ValueLen;
// Value length in characters
LBOOL Selected;
// If true, the value is selected
};
The function retrieves a choice value of a combo or list box. The parameter AField must be a valid
handle of a combo or list box. ValIndex is the array index of the choice value to be retrieved. Call
GetFieldExpValCount() to determine how many choice values are available in the combo or list box.
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.
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,
 

Previous topic: GetFieldChoiceValue

Next topic: GetFieldEx