|
THotPDF.EnsureLoadedFieldAppearanceStream
|
Top Previous Next |
|
Regenerates a loaded text or choice field appearance with inherited AcroForm settings, multiline layout, quadding, automatic font sizing, and comb placement
Delphi syntax: function EnsureLoadedFieldAppearanceStream( FieldIndex: Integer ): boolean;
Description Walks every widget under the selected field and regenerates its normal appearance stream in local widget coordinates For native loaded widgets rotated by Generated button normal appearances, including checkbox and radio On and Off states, use the same logical bounds and rotation transform SetLoadedFormFieldRotation writes MK.R only; call this method explicitly to regenerate AP, without changing field values or headless rotation behavior The method honors inherited After SetLoadedFormFieldOptions, explicitly call this method when refreshed output is needed; option replacement does not automatically regenerate AP and AutoFormAppearances is not a loaded-field refresh switch Choice layout consumes final stored option order and effective selection and viewport state without another ffSort pass; only valid existing explicit TI is remapped by replacement, while absent or invalid TI retains the existing storage and rendering interpretation; retained fractional index tokens are not rounded into valid replacement indices A widget inheriting updated field TI retains that inheritance; a widget with its own Opt keeps its own option index space and preserved I semantics rather than consuming incompatible new field indices Choice fields decode Unicode option strings and match stored export values to display labels without changing Combo boxes display a matching option label or the custom value; list boxes display their options even when no option is selected and highlight single or multiple selections, using selection indices to distinguish duplicate export values Visible listbox option labels use the effective field
See also: THotPDF |