DynaPDF Manual - Page 255

Previous Page 254   Index   Next Page 256

Function Reference
Page 255 of 777
The values of the list box are sorted if the parameter Sort is true. List boxes support multiple selected
values. To enable multi selection add the flag ffMultiSelect to the field (see SetFieldFlags() for further
A list box requires a font. If no font is active the standard font Helvetica is used. Note that if the form
must be compatible to Acrobat 4, the used fonts by the form fields must be restricted to the 14
standard fonts (see SetFont() for further information). Acrobat 4 does not support interactive forms
that use other fonts than the 14 standard fonts. Such a form requires Acrobat 5 or higher.
Form fields support natively the code pages 1252 and MacRoman. However, other code pages and
Unicode can be used too as long as a few external cmaps are available. See SetFieldFont() for further
The font size of a list box is set to "auto" if either the font size of the active font is set to 1.0 unit or if
no font is active when the field is created.
A text field can be formatted and the allowed input values can be restricted to specific data formats.
See SetDateTimeFormat(), SetNumberFormat() for further information.
Specific flags supported by list boxes:
// Change the sort flag if necessary
ffMultiSelect // Enable multi selection
Interactive form fields can be structured into several groups by passing a handle of a group field to
the parameter Parent. See CreateGroupField() for further information.
Return values:
If the function succeeds the return value is the handle of the combo box, a value greater or equal
zero. If the function fails the return value is a negative error code.
SI32 pdfCreateNamedAction(
const PPDF* IPDF,
// Instance pointer
TNamedAction Action) // Kind of action that should be executed
typedef enum
// PDF 1.2 Go to the first page of the document
// PDF 1.2 Go to the last page of the document
// PDF 1.2 Go to the next page
// PDF 1.2 Go to the previous page
// Go back to last page and position
// Display the file open dialog
// Display the print dialog
// Display the general info tab

Previous topic: CreateLaunchActionEx, CreateListBox

Next topic: CreateNamedDest