Step 3: Detect When the User Aborts a Drag-and-Drop Operation

LabVIEW 2018 Help

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

DOWNLOAD (Windows Only)

LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

The user aborts a drag-and-drop operation if he or she releases the mouse button over any location on the front panel other than the drop target. To end the drag-and-drop operation when the user releases the mouse button, you must detect the Mouse Up event and prevent the drag from starting if the event occurs. Providing a FALSE value to the shift register prevents the VI from starting the drag if the Mouse Up event occurs.

Create the following block diagram to detect when the user aborts a drag-and-drop operation.

After you detect when the user aborts a drag-and-drop operation, start the drag-and-drop operation by providing the drag data.


Not Helpful