CommitInplaceEditor

Form fields, viewer interaction

Description

Closes the open in-place form editor; when Save is True the editor's content is written through SetFormFieldValueAndRefresh, which drops the page's cached bitmaps and fires OnFormFieldValueChanged

Combo and list editors write the export name of the selected option, multi-select lists join their export names with carriage returns, and an editable combo falls back to the typed text when nothing is selected; the editor is detached first so its focus events cannot re-enter the commit, then hidden, parked for deferred destruction, and focus returns to the viewer

The call is a safe no-op when no editor is open; Escape cancels with Save False while Enter, Ctrl+Enter, a double click and focus loss commit with Save True

Syntax

Delphi

Procedure TPDFlibViewer.CommitInplaceEditor(Save: Boolean);

Parameters

SaveTrue writes the edited value into the field, False discards it

See also

TPDFlibViewer, BeginEditFormField, EditingFieldIndex, FocusNextFormField