property ChartView.LinkCaptionFromPoint (X as OLE_XPOS_PIXELS, Y as OLE_YPOS_PIXELS) as Node
Gets the node whose caption on the link hovers the specified point.

 TypeDescription 
   X as OLE_XPOS_PIXELS A single that specifies the current X location of the mouse pointer. The x values is always expressed in client coordinates.  
   Y as OLE_YPOS_PIXELS A single that specifies the current Y location of the mouse pointer. The y values is always expressed in client coordinates  
   Node A Node object whose LinkCaption property hovers the specified point.  
Use the LinkCaptionFromPoint property to determine the node whose caption on the link is at specified point. If the X parameter is -1 and Y parameter is -1 the LinkCaptionFromPoint property determines the caption from the cursor.  Use the LinkCaption property to assign a HTML caption on the node's link.

The following VB sample prints the caption on the link from the cursor:

Private Sub ChartView1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    With ChartView1
        Dim n As EXORGCHARTLibCtl.Node
        Set n = .LinkCaptionFromPoint(-1,-1)
        If Not (n Is Nothing) Then
            Debug.Print n.LinkCaption
        End If
    End With
End Sub

The following C++ sample prints the caption on the link from the cursor:

void OnMouseMoveChartview1(short Button, short Shift, long X, long Y) 
{
	CNode node = m_chartview.GetLinkCaptionFromPoint( -1, -1 );
	if ( node.m_lpDispatch != NULL )
		OutputDebugString( node.GetLinkCaption() );
}

The following VB.NET sample prints the caption on the link from the cursor:

Private Sub AxChartView1_MouseMoveEvent(ByVal sender As Object, ByVal e As AxEXORGCHARTLib._IChartViewEvents_MouseMoveEvent) Handles AxChartView1.MouseMoveEvent
    With AxChartView1
        Dim n As EXORGCHARTLib.Node = .get_LinkCaptionFromPoint(-1, -1)
        If Not (n Is Nothing) Then
            Debug.WriteLine(n.LinkCaption)
        End If
    End With
End Sub

The following C# sample prints the caption on the link from the cursor:

private void axChartView1_MouseMoveEvent(object sender, AxEXORGCHARTLib._IChartViewEvents_MouseMoveEvent e)
{
	EXORGCHARTLib.Node node = axChartView1.get_LinkCaptionFromPoint(-1, -1);
	if (node != null)
		System.Diagnostics.Debug.WriteLine(node.LinkCaption);
}

The following VFP sample prints the caption on the link from the cursor:

*** ActiveX Control Event ***
LPARAMETERS button, shift, x, y

With thisform.ChartView1
    local n
    n = .LinkCaptionFromPoint(-1 , -1 )
    If !isnull(n) Then
        wait window nowait n.LinkCaption
    EndIf
EndWith


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