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. For the eXToolTip control, the Options parameter specifies the inside tooltip being shown when the cursor hovers 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.  For instance, if the cell is disabled, the hand cursor is not shown when hovers the anchor element, and so the AnchorClick event is not fired. Use the FormatAnchor property to specify the visual effect for anchor elements. For instance, if the user clicks the anchor <a1>anchor</a>, the control fires the AnchorClick event, where the AnchorID parameter is 1, and the Options parameter is empty. Also, if the user clicks the anchor <a 1;yourextradata>anchor</a>, the AnchorID parameter of the AnchorClick event is 1, and the Options parameter is "yourextradata".

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, AxEXTOOLTIPLib._IToolTipEvents_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: AxEXTOOLTIPLib._IToolTipEvents_AnchorClickEvent);
begin
end;

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

Private Sub AnchorClick(ByVal sender As System.Object, ByVal e As AxEXTOOLTIPLib._IToolTipEvents_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(oToolTip,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 opens your default browser ( IE, Chrome, Firefox, ... ) when user clicks an hyperlink ( using the /COM assembly version ):

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Not (t.Visible) Then
        t.ShowToolTip "<a www.exontrol.com>exontrol</a> click and so on", Nothing, EXTOOLTIPLib.exTopLeft, "+16", Nothing
    End If
End Sub

Private Sub t_AnchorClick(ByVal AnchorID As String, ByVal Options As String)
    Shell ("C:\Program Files\Internet Explorer\IEXPLORE.EXE " & "http://" & AnchorID)
End Sub 

The following VB/NET sample opens your default browser ( IE, Chrome, Firefox, ... ) when user clicks an hyperlink ( using the /NET assembly version ):

Private Sub Form1_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove
    If Not (Extooltip1.Visible) Then
        Extooltip1.ShowToolTip("<a www.exontrol.com>exontrol</a> click and so on", Nothing, exontrol.EXTOOLTIPLib.AlignmentEnum.exTopLeft, "+16", Nothing)
    End If
End Sub

Private Sub Extooltip1_AnchorClick_1(ByVal sender As System.Object, ByVal AnchorID As System.String, ByVal Options As System.String) Handles Extooltip1.AnchorClick
    System.Diagnostics.Process.Start("http://" + AnchorID.ToString())
End Sub  

The AnchorID parameter carries the first argument of the <a param1;param2> HTML tag in the tooltip. In the previously sample, the first parameter of the <a> is www.exontrol.com which is passed to AnchorClick event when user presses the exontrol link in the tooltip.