Type | Description | |||
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 where the point is. |
Use the NodeFromPoint property to determine the node from specified position. If the X parameter is -1 and Y parameter is -1 the NodeFromPoint property determines the node from the cursor. Use the Caption property to specify the caption of the node. The control fires the Select event when the user clicks a node.
The following VB sample prints the caption of the node 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 = .NodeFromPoint(-1,-1) If Not (n Is Nothing) Then Debug.Print n.Caption End If End With End Sub
The following C++ sample prints the caption of the node from the cursor:
void OnMouseMoveChartview1(short Button, short Shift, long X, long Y) { CNode node = m_chartview.GetNodeFromPoint( -1, -1 ); if ( node.m_lpDispatch != NULL ) OutputDebugString( node.GetCaption() ); }
The following VB.NET sample prints the caption of the node 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_NodeFromPoint(-1, -1) If Not (n Is Nothing) Then Debug.WriteLine(n.Caption) End If End With End Sub
The following C# sample prints the caption of the node from the cursor:
private void axChartView1_MouseMoveEvent(object sender, AxEXORGCHARTLib._IChartViewEvents_MouseMoveEvent e) { EXORGCHARTLib.Node node = axChartView1.get_NodeFromPoint(-1, -1); if (node != null) System.Diagnostics.Debug.WriteLine(node.Caption); }
The following VFP sample prints the caption of the node from the cursor:
*** ActiveX Control Event *** LPARAMETERS button, shift, x, y With thisform.ChartView1 local n n = .NodeFromPoint(-1 , -1 ) If !isnull(n) Then wait window nowait n.Caption EndIf EndWith