AddLinkToJavaScriptA

JavaScript, Annotations and hotspot links

Descrição

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

Adiciona à página selecionada um retângulo de hotspot clicável que aponta para uma ação JavaScript

Use a função SetAnnotBorderColor para alterar a cor da borda do hotspot

Sintaxe

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);

Parâmetros

LeftA coordenada horizontal da borda esquerda do retângulo de hotspot
TopA coordenada vertical da borda superior do retângulo de hotspot
WidthA largura do retângulo de hotspot
HeightA altura do retângulo de hotspot
JavaScriptThe JavaScript to execute.
OptionsSpecifies the appearance of the link: 0 = No border 1 = Draw a border int Options);