LinkOptions auto-handling runsproperty OnWebLinkClick: TPdfViewWebLinkClickEvent;
Fired when the user clicks a text-detected web URL before LinkOptions automatic handling runs. Set Handled to True to suppress the built-in default behavior
When Handled remains False and loAutoOpenURI is enabled in LinkOptions, the view opens the URL automatically after the event handler returns
Handlers run on the VCL main thread; navigation can therefore call modal dialogs or update form controls inline
Url parameter is a WString value — it is safe to copy or inspect after the handler returnsfile: or javascript: activationOnMouseMove to hover-preview the target URL in a status bar
procedure TForm1.PdfView1OnWebLinkClick(Sender: TObject; const Url: WString; var Handled: Boolean);
begin
// inspect Url and decide whether to navigate
Handled := True;
end;