ImageEn, unit imageenview

TImageEnView.OnClickLink

TImageEnView.OnClickLink


Declaration

property OnClickLink: TIEClickLinkEvent;


Description

Occurs when a user clicks a link in a layer or a PDF document.
Parameter Description
X, Y The clicked position (in control coordinates)
Index If a layer is clicked, this is the layer index. For PDF documents, this is index of the links within the current page
Change The URL specified for the link

The following links are supported:
 Layers that have URL specified and there are no Layer interactions or General interactions, other than miZoom, miDblClickZoom and/or miScroll
 PDF document links when the PdfViewer is active.


Demo

Demo  Demos\LayerEditing\Layers_Text\TextLayers.dpr
Demo  Demos\Other\PdfViewer\PdfViewer.dpr


Example

procedure TMainForm.ImageEnView1ClickLink(Sender: TObject; X, Y: Integer; Index: Integer; URL: string);
begin
  ShowMessage( format( 'Clicked link: %s (%d, %d)', [ URL, X, Y ]) );
end;