Drag Ended Event

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2015 Help
LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help

Requires: Base 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. You can use this event in conjunction with other control events to implement custom drag-and-drop behavior. Use this event to implement Drag Moving or to provide notification when a drag and drop operation is completed. 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.
TimeValue of the millisecond timer when 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 - Initiating a Custom Drag VI in the labview\examples\Structures\Event Structure directory for an example of using the Drag Ended event.

WAS THIS ARTICLE HELPFUL?

Not Helpful