DynaPDF Manual - Page 365

Previous Page 364   Index   Next Page 366

Function Reference
Page 365 of 777
LBOOL pdfGetFieldChoiceValue(
const PPDF* IPDF,
// Instance pointer
UI32 AField,
// Field handle
UI32 ValIndex,
// Value index
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.
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

Previous topic: GetFieldBorderStyle, GetFieldBorderWidth, GetFieldCalcOrder

Next topic: GetFieldCount, GetFieldEx