ImageEn, unit iexUserInteractions

TIEPdfViewerInteraction.FormFieldFocused

TIEPdfViewerInteraction.FormFieldFocused


Declaration

property FormFieldFocused: Boolean;


Description

Returns true if a field in a PDF form currently has focus.



Note: AllowFormEditing must be enabled for a field to take focus

Read-only


Example

procedure TMainForm.ImageEnView1UserInteraction(Sender: TObject; Event:
    TIEUserInteractionEvent; Info: Integer);
begin
  // Enable the "Clear" button when a form field in a PDF document is selected
  if Event in [ieiPdfFieldEnter, ieiPdfFieldLeave] then
    btnClear.Enabled := ImageEnView1.PdfViewer.FormFieldFocused;
end;


See Also

- AllowFormEditing
- ContainsForm
- FormFields
- FormModified