PDFium Component Docs

OnFormFieldFocusChange event

Component: TPdfView  ·  Unit: PDFium
Fires when TPdfView moves or clears the logical AcroForm field focus cursor

Syntax

property OnFormFieldFocusChange: TPdfFormFieldFocusEvent;

Description

The event receives the new field index, or -1 when the focus cursor is cleared. It is raised by TPdfView focus navigation methods, not by TPdf methods

Use the event to update status text, synchronize a speech cursor, or select the corresponding FormFieldInfo entry

Remarks

Example

PdfView1.OnFormFieldFocusChange := PdfFormFieldFocusChange;

procedure TMainForm.PdfFormFieldFocusChange(Sender: TObject; FieldIndex: Integer);
begin
  StatusBar1.SimpleText := IntToStr(FieldIndex);
end;

See Also

FocusFormField, FocusNextFormField, FocusPreviousFormField, ClearFormFieldFocus