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. | |||
String | A String expression that specifies the identifier (id) of the anchor element from the point, or empty string if there is no anchor element at the cursor |
The following VB sample displays ( as tooltip ) the identifier of the anchor element from the cursor:
Private Sub G2antt1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) With G2antt1 .ShowToolTip .AnchorFromPoint(-1, -1) End With End Sub
The following VB.NET sample displays ( as tooltip ) the identifier of the anchor element from the cursor:
Private Sub AxG2antt1_MouseMoveEvent(ByVal sender As System.Object, ByVal e As AxEXG2ANTTLib._IG2anttEvents_MouseMoveEvent) Handles AxG2antt1.MouseMoveEvent With AxG2antt1 .ShowToolTip(.get_AnchorFromPoint(-1, -1)) End With End Sub
The following C# sample displays ( as tooltip ) the identifier of the anchor element from the cursor:
private void axG2antt1_MouseMoveEvent(object sender, AxEXG2ANTTLib._IG2anttEvents_MouseMoveEvent e) { axG2antt1.ShowToolTip(axG2antt1.get_AnchorFromPoint(-1, -1)); }
The following C++ sample displays ( as tooltip ) the identifier of the anchor element from the cursor:
void OnMouseMoveG2antt1(short Button, short Shift, long X, long Y) { COleVariant vtEmpty; V_VT( &vtEmpty ) = VT_ERROR; m_g2antt.ShowToolTip( m_g2antt.GetAnchorFromPoint( -1, -1 ), vtEmpty, vtEmpty, vtEmpty ); }
The following VFP sample displays ( as tooltip ) the identifier of the anchor element from the cursor:
*** ActiveX Control Event *** LPARAMETERS button, shift, x, y with thisform With .G2antt1 .ShowToolTip(.AnchorFromPoint(-1, -1)) EndWith endwith