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 indicates the path of the file from the cursor. |
The following VB sample displays the file from the cursor:
Private Sub ExFileView1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Dim f As String f = ExFileView1.FileFromPoint(X / Screen.TwipsPerPixelX, Y / Screen.TwipsPerPixelY) If Len(f) > 0 Then Debug.Print f End If End Sub
The following C++ sample displays the file from the cursor:
void OnMouseMoveExfileview1(short Button, short Shift, long X, long Y) { CString f = m_fileview.GetFileFromPoint( X, Y ); if ( f.GetLength() > 0 ) OutputDebugString( f ); }
The following VB.NET sample displays the file from the cursor:
Private Sub AxExFileView1_MouseMoveEvent(ByVal sender As Object, ByVal e As AxEXFILEVIEWLib._IExFileViewEvents_MouseMoveEvent) Handles AxExFileView1.MouseMoveEvent Dim f As String = AxExFileView1.get_FileFromPoint(e.x, e.y) If Len(f) > 0 Then Debug.WriteLine(f) End If End Sub
The following C# sample displays the file from the cursor:
private void axExFileView1_MouseMoveEvent(object sender, AxEXFILEVIEWLib._IExFileViewEvents_MouseMoveEvent e) { string f = axExFileView1.get_FileFromPoint(e.x, e.y); if (f.Length > 0) System.Diagnostics.Debug.WriteLine(f); }
The following VFP sample displays the file from the cursor:
*** ActiveX Control Event *** LPARAMETERS button, shift, x, y with thisform.ExFileView1 local f f = .FileFromPoint( x, y ) if ( len(f) > 0 ) wait window nowait f endif endwith