AddLinkToWebA

Annotations and hotspot links

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to AddLinkToWeb and string arguments are interpreted using the current SetAnsiMode code page

Adds a clickable hotspot rectangle to the selected page which links to a URL on the internet. This can also be used to link to an e-mail address.

Use the SetAnnotBorderColor function to change the color of the hotspot border.

Syntax

Delphi

Function DLAddLinkToWebA(InstanceID: Integer; Left, Top, Width, Height: Double; Link: PAnsiChar; Options: Integer): Integer;

DLL

int DLAddLinkToWebA(int InstanceID, double Left, double Top, double Width, double Height, const char * Link, int Options);

Parameters

LeftThe left edge of the hotspot rectangle The top edge of the hotspot rectangle
Top
WidthThe width of the hotspot rectangle
HeightThe height of the hotspot rectangle
LinkThe URL to link to. Some examples: "http://www.example.com/" "mailto:[email protected]"
OptionsSpecifies the appearance of the link: 0 = No border 1 = Draw a border