PDFium Component Docs

OnAnnotationLinkClick įvykis

Komponentas: TPdfView  ·  Modulis: PDFium
Suveikia, kai naudotojas spusteli /Annot Subtype Link, kurio LinkOptions neapdoroja automatiškai

Syntax

property OnAnnotationLinkClick: TPdfViewAnnotationLinkClickEvent;

Description

Fired when the user clicks a /Annot Subtype Link that is not auto-handled by LinkOptions. Set Handled to True to suppress the built-in default behavior.

When LinkOptions has the matching auto flag enabled the view performs the navigation/launch automatically and this event is not raised.

Handlers run on the VCL main thread; navigation can therefore call modal dialogs or update form controls inline.

Remarks

Example

procedure TForm1.PdfView1OnAnnotationLinkClick(Sender: TObject; const Link: TLinkAnnotation; var Handled: Boolean);
begin
  // inspect Link and decide whether to navigate
  Handled := True;
end;

See Also

LinkOptions, OnWebLinkClick, LinkAnnotation