THPDFPage.CreateListBox Method
Method summary: THPDFPage.CreateListBox Method
Declaration
function CreateListBox(const FieldName, InitialValue: AnsiString; const Options: array of AnsiString; Rectangle: TRect): THPDFAcroFormField;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldName | Name of the form field |
InitialValue | Initial selected value |
Options | Available list box values |
Rectangle | Widget rectangle on the page |
Flags | Input supplied to CreateListBox |
Return value
THPDFAcroFormField wrapper for the created list box
Usage notes
- Use this API in the page geometry workflow before the affected page, resource, field or catalogue object is finalised
- Keep object names, field names, resource names and returned handles stable until the document is finalised
- Use THPDFPage.AddListBox for the simpler one-call workflow
Related APIs
- THPDFPage
- THPDFPage Methods
- AcroForm Support