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

DynaPDF Manual - Page 637

Previous Page 636   Index   Next Page 638

Function Reference
Page 637 of 750
SetFieldFlags
Syntax:
LBOOL pdfSetFieldFlags(
const PPDF* IPDF,
// Instance pointer
UI32 AField,
// Field handle
TFieldFlags Flags, // Field flags, see below
LBOOL Reset)
// Reset the flags or add them?
typedef UI32 TFieldFlags;
// Basic flags supported by all field types except group fields and
// radio button fields.
#define ffReadOnly
0x00000001
#define ffRequired
0x00000002
#define ffNoExport
0x00000004
#define ffInvisible
0x00000008
#define ffHidden
0x00000010
#define ffPrint
0x00000020
#define ffNoZoom
0x00000040
#define ffNoRotate
0x00000080
#define ffNoView
0x00000100
// Special flags supported by specific fields only
#define ffMultiline
0x00001000 // Text fields only
#define ffPassword
0x00002000 // Text fields only
#define ffNoToggleToOff
0x00004000 // Radio buttons, check boxes
#define ffRadioIsUnion
0x04000000 // PDF 1.5 Radio buttons
#define ffCommitOnSelCh
0x08000000 // PDF 1.5 Combo and list boxes
#define ffEdit
0x00040000 // Combo boxes only
#define ffSorted
0x00080000 // Combo and list boxes
#define ffFileSelect
0x00100000 // PDF 1.4 Text fields only
#define ffMultiSelect
0x00200000 // PDF 1.4 List boxes only
#define ffDoNotSpellCheck 0x00400000 // PDF 1.4 Text fields, combo boxes
#define ffDoNotScroll
0x00800000 // PDF 1.4 Text fields only
#define ffComb
0x01000000 // PDF 1.5 Text fields only
The function sets the flags of a specific interactive form field. The parameter AField must be a valid
field handle. The parameter Flags is a bit mask, multiple flags can be set by adding the values or use
a bitwise Or operator, e.g. ffPrint | ffMultiline. If the parameter Reset is true the flags of the field are
set to the ones specified. If Reset is false, the flags are added by using a bitwise Or operator.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetFieldExpValueEx

Next topic: SetFieldFont