|LabVIEW 2016 Help|
|LabVIEW 2017 Help|
|LabVIEW 2018 Help|
|LabVIEW 2019 Help|
|LabVIEW 2020 Help|
When the user tries to drag and drop data between controls, he or she causes particular events to occur. To allow the user to successfully copy or move data from the drag source to the drop target, you must configure the relevant events to interpret user actions as drag-and-drop behavior.
Use the following block diagram objects to prepare the VI to detect when the user causes drag-and-drop events to occur:
|Event Structure||While Loop||Shift Registers|
Create the following block diagram to prepare the VI to detect when the user causes drag-and-drop events to occur.
The following list describes important details about the previous block diagram:
|Use the Event structure to detect when events relevant to the drag-and-drop operation occur. Add the following events to the Event structure:
|The shift register tracks whether to start the drag-and-drop operation when the mouse leaves the bounds of the drag source. The Mouse Down event provides a TRUE value to the shift register, which allows the drag source to provide the drag data during the Mouse Leave event only if the Mouse Down event occurred.|
After you prepare the VI to detect when the user causes drag-and-drop events to occur, detect when the user aborts a drag-and-drop operation.