Drag Ended Event

LabView Local Project Settings

Drag Ended Event

Installed With: Full Development System

Class: Control Events

Type: Notify

Generated after a drag and drop operation completes.

This event occurs after a drop operation, after the user cancels the drag and drop operation by pressing the <Esc> key, or the drag source window loses focus. Use this event to implement Drag Moving or if you need to be notified the completion of a drag and drop operation. If you move data during a drag and do not copy it as well, you should delete the source data in the Drag Ended event.

Example

Event Data Fields

NameDescription
SourceSource of the event. LabVIEW UI refers to any built-in user interface event.

0LabVIEW UI
TypeType of event that occurred, such as Mouse Down, Value Change, Timeout, and so on.
TimeValue of the millisecond timer when the event occurred.
CtlRefReference to the control on which the event occurred.
ResultIndicates the current state of the drag operation. Use this value to update the cursor if necessary.

0Drop Cancel—Indicates that no target accepted the data.
1Drop Move—Indicates that the drop target accepted the drag data and expects the drag source to delete its copy of the data.
2Drop Copy—Indicates that a drop target accepted the drag data and expects the data to remain at the source.

Example

Refer to the Drag and Drop - Custom Source Handle Dropping VI in the labview\examples\general\dragdrop directory for an example of using the Drag Ended event.

 Open example  Browse related examples