Type | Description | |||
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. |
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 |
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 |
<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.