|
THPDFPage.AddComboBox
|
Methods AcroForm Support |
|
Adds an AcroForm combo box choice field to the current page
Delphi syntax: procedure AddComboBox(const FieldName, InitialValue: AnsiString; const Options: array of AnsiString; Rectangle: TRect; Flags: THPDFFormFieldFlags = []);
Description The method creates a /Ch field with the Combo flag. Options supplies the visible choices and InitialValue selects the initial value when it matches one of those choices With This comparison uses Windows NLS weights rather than a universal alphabet: case-related and other tertiary distinctions can compare equal, secondary weights remain active, and canonical or ignorable sequences may tie; the invariant locale avoids user-locale dependence, whilst weights can vary across Windows versions Sorting retains the original option text and InitialValue; exact Unicode equality still identifies the selected spelling, so linguistic ties neither merge options nor select a different value Option strings and InitialValue preserve UTF-8 text and ASCII control scalars, including embedded NUL, through UTF-16 text-string storage when PDFDocEncoding cannot represent them faithfully; the existing selected-caption appearance behaviour is retained For generated listbox option rows and the standard-font rendering boundary, see AddListBox
THPDFPage.AddComboBoxWithLabelsCreates a single-choice combo box whose stored export values are separate from the labels shown to the user Windows component signature
This signature belongs to Native UNIX canvas signature
This signature belongs to Values, labels and selectionThe arrays must have equal lengths, and each matching pair becomes a two-string For non-empty arrays, The single entry in With component Empty arrays create The component honours the document's existing appearance-generation policy; the native canvas uses its existing supplied-font appearance path. Separating labels from exports does not add a new font fallback or shaping provider See also: AcroForm Support, LastAnnotation |