# Drag and Drop Utility

> Source: https://manual.pvxplus.com/nomads-graphical-application/panel-designer/options-and-utilities/drag-and-drop-utility

The **Drag and Drop** utility enables selected items to be moved between a source control and a destination control. It allows you to define a source object and a destination object for drag and drop functionality in your panel.

The application is responsible for moving and dropping items from the source to destination controls. When the drop signal occurs, the application logic will be invoked. The following controls are able to use this functionality:

|  |  |
| --- | --- |
|  | *Drag From* (source) controls are **[List Box](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/list-box-controls/overview)**, **[Drop Box](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/drop-box-control/overview)**, **[Multi-Line](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/multi-line-control/overview)** and **[Grid](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/grid-control/overview)**. You can also specify \*FILE as the source to allow external applications, such as Windows Explorer, to drop file names onto a destination input control. (The \*FILE option is not supported in iNomads.) |
|  | *Drop On* (destination) controls are **[Button](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/button-control/overview)**, **[Radio Button](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/radio-button-control/overview)**, **[Drop Box](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/drop-box-control/overview)**, **[Check Box/Tri-State](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/check-box-and-tri-state-control/overview)**, **[Grid](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/grid-control/overview)** and **[List Box](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/list-box-controls/overview)**. |

If the drag and drop functionality will occur between the main panel and a **[Concurrent Panel](https://manual.pvxplus.com/nomads-graphical-application/program-interaction/concurrent-panels/overview)**, it must be defined in this utility for the concurrent panel. If the drag and drop functionality will occur between two concurrent panels, it must be defined on both panels. In these cases, only the controls on the current panel will appear in the *Drag From* or *Drop On* drop boxes; however, other control names may be manually typed.

*(Support for drag and drop between concurrent windows was added in PxPlus 2020.)*

Invoke the **Drag and Drop** utility from the **[NOMADS Panel Designer](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/introduction)** by selecting *Utilities > Drag&Drop* from the menu bar or the *DragDrop* option on the tool bar.

The following window is displayed:

![](https://manual.pvxplus.com/migration-assets/b145bb227851f74297778392e926c6887a5686578279e0ee844f99671e4b7f1f.jpg)

This window consists of the following:

|  |  |
| --- | --- |
| *Drag From* | Click the drop-down arrow to select from the list of source controls that you can *drag from* or type another control name.<br>You can also specify \*FILE as the source to allow external applications, such as Windows Explorer, to drop file names onto a destination input control. The result of the drop event is a list of full pathnames of the dragged files, separated by a SEP character, that is loaded into the NOMADS Reserved Variable **[DROPFILES$](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#dropfiles)**. The list is also available using the FIN(0,"DROPFILES") function.<br>Note:  <br>The \*FILE option is not supported in iNomads.<br>*(The variable drop box functionality was added in PxPlus 2020.)  <br>(The \*FILE option to drag and drop files from an external source was added in PxPlus 2021 Update 1.)* |
| *Drop On* | Click the drop-down arrow to select from the list of destination controls you can *drop on* or type another control name.<br>*(The variable drop box functionality was added in PxPlus 2020.)* |
| *Logic* | Enter the logic to be executed when the drop signal event occurs. Click the dotted button to invoke the **Logic** window for creating or editing this string.<br>Available processes include *Ignore, Link, Perform, Call, Execute, Help, Jumpto, End*. See **[Actions and Parameters](https://manual.pvxplus.com/nomads-graphical-application/program-interaction/events-logic/actions-and-parameters)**. |
| *Insert Above  <br>Insert Below* | Adds a blank row above or below the currently selected row. |
| *Delete* | Removes the currently selected row. |
| *OK* | Saves any changes and closes the **Drag and Drop Utility**. |
| *Cancel* | Closes the **Drag and Drop Utility** without saving any changes. |
