event AnchorClick (AnchorID as String, Options as String)
Occurs when an anchor element is clicked.

 TypeDescription 
   AnchorID as String A string expression that indicates the identifier of the anchor  
   Options as String A string expression that specifies options of the anchor element.  
The control fires the AnchorClick event to notify that the user clicks an anchor element. An anchor is a piece of text or some other object (for example an image) which marks the beginning and/or the end of a hypertext link. The <a> element is used to mark that piece of text (or inline image), and to give its hypertextual relationship to other documents. The AnchorClick event is fired only if prior clicking the control it shows the hand cursor. Use the ToolBarFormat property to add anchor elements to your toolbar. The Click event notifies your application once the user clicks a button in the preview's toolbar. 

Syntax for AnchorClick event, /NET version, on:

private void AnchorClick(object sender,string AnchorID,string Options)
{
}

Private Sub AnchorClick(ByVal sender As System.Object,ByVal AnchorID As String,ByVal Options As String) Handles AnchorClick
End Sub

Syntax for AnchorClick event, /COM version, on:

private void AnchorClick(object sender, AxEXPRINTLib._IExPrintEvents_AnchorClickEvent e)
{
}

void OnAnchorClick(LPCTSTR AnchorID,LPCTSTR Options)
{
}

void __fastcall AnchorClick(TObject *Sender,BSTR AnchorID,BSTR Options)
{
}

procedure AnchorClick(ASender: TObject; AnchorID : WideString;Options : WideString);
begin
end;

procedure AnchorClick(sender: System.Object; e: AxEXPRINTLib._IExPrintEvents_AnchorClickEvent);
begin
end;

begin event AnchorClick(string AnchorID,string Options)
end event AnchorClick

Private Sub AnchorClick(ByVal sender As System.Object, ByVal e As AxEXPRINTLib._IExPrintEvents_AnchorClickEvent) Handles AnchorClick
End Sub

Private Sub AnchorClick(ByVal AnchorID As String,ByVal Options As String)
End Sub

Private Sub AnchorClick(ByVal AnchorID As String,ByVal Options As String)
End Sub

LPARAMETERS AnchorID,Options

PROCEDURE OnAnchorClick(oPrint,AnchorID,Options)
RETURN

Syntax for AnchorClick event, /COM version (others), on:

<SCRIPT EVENT="AnchorClick(AnchorID,Options)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function AnchorClick(AnchorID,Options)
End Function
</SCRIPT>

Procedure OnComAnchorClick String llAnchorID String llOptions
	Forward Send OnComAnchorClick llAnchorID llOptions
End_Procedure

METHOD OCX_AnchorClick(AnchorID,Options) CLASS MainDialog
RETURN NIL

void onEvent_AnchorClick(str _AnchorID,str _Options)
{
}

function AnchorClick as v (AnchorID as C,Options as C)
end function

function nativeObject_AnchorClick(AnchorID,Options)
return

The following VB sample displays a message that specifies the hyperlink being clicked:

Private Sub Print1_AnchorClick(ByVal AnchorID As String, ByVal Options As String)
    MsgBox AnchorID
End Sub

The ToolBarFormat property is set as:

Print1.ToolBarFormat = "-1,100,101,102,-1,103,-1,104,-1,105,|,""<aexontrol>http://www.exontrol.com</a>""[a=18]:164"

 The following VB/NET sample displays a message that specifies the hyperlink being clicked:

Private Sub Exprint1_AnchorClick(ByVal sender As System.Object, ByVal AnchorID As System.String, ByVal Options As System.String) Handles Exprint1.AnchorClick
    MsgBox(AnchorID)
End Sub

The ToolBarFormat property is set as:

Exprint1.ToolBarFormat = "-1,100,101,102,-1,103,-1,104,-1,105,|,""<aexontrol>http://www.exontrol.com</a>""[a=18]:164"

Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.