onDragEnter
Topic group Related topics Example
For Drag&Drop operations; when the mouse enters the display area of an active Drop Target.
Parameters
<nLeft expN>
The entry position of the mouse pointer relative to the left edge of the Drop Target object.
<nTop expN>
The entry position of the mouse pointer relative to the top edge of the Drop Target object.
<cType expC>
A character or string, typically identifying the dragged object’s type.
<cName expC>
A string, typically containing the name of an object or a file.
Property of
Browse, Container, Form, Grid, Image, ListBox, NoteBook, PaintBox, ReportViewer, SubForm, TreeView
Description
Use onDragEnter to perform actions when the mouse enters the display area of an active Drop Target during a Drag&Drop operation.
A numeric value returned by the onDragEnter event handler determines whether a drop will be allowed, or may change the type of drop operation. The permitted return values are:
Value |
Drop Effect |
0 |
No drop permitted |
1 (default) |
Drop permitted: Copy |
2 |
Drop permitted: Move
|
If onDragEnter is not explicitly defined for a Drop Target object or no value is returned, a default value of 1 is assumed.
Note
onDragEnter is not invoked for files dragged from the dBASE Plus Navigator window.