وثائق PDFiumVCL

OnWebLinkClick event

يحافظ إدخال API هذا على المعرّفات والتواقيع وكتل الكود ومصطلحات PDF بصيغتها الأصلية.
Component: TPdfView  ·  Unit: PDFium
Fired when the user clicks a text-detected web URL that is not auto-handled by LinkOptions.

Syntax

property OnWebLinkClick: TWebLinkClickEvent;

Description

Fired when the user clicks a text-detected web URL that is not auto-handled by LinkOptions. Set Handled to True to suppress the built-in default behaviour.

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.PdfView1OnWebLinkClick(Sender: TObject; const Link: TWebLink; var Handled: Boolean);
begin
  // inspect Link and decide whether to navigate
  Handled := True;
end;

See Also

LinkOptions, OnAnnotationLinkClick, LinkAnnotation