AddLinkToJavaScriptA
JavaScript, 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 AddLinkToJavaScript and string arguments are interpreted using the current SetAnsiMode code page
Adds a clickable hotspot rectangle to the selected page which links to a JavaScript action.
Use the SetAnnotBorderColor function to change the colour of the hotspot border.
Syntax
Delphi
Function DLAddLinkToJavaScriptA(InstanceID: Integer; Left, Top, Width, Height: Double; JavaScript: PAnsiChar; Options: Integer): Integer;
DLL
int DLAddLinkToJavaScriptA(int InstanceID, double Left, double Top, double Width, double Height, const char* JavaScript, int Options);
Parameters
| Left | The horizontal co-ordinate of the left edge of the hotspot rectangle |
|---|---|
| Top | The vertical co-ordinate of the top edge of the hotspot rectangle |
| Width | The width of the hotspot rectangle |
| Height | The height of the hotspot rectangle |
| JavaScript | The JavaScript to execute. |
| Options | Specifies the appearance of the link: 0 = No border 1 = Draw a border |