Home | Sign in | English UK
  • What is Drag and Drop?
  • WINDEV and "Drag and Drop"
  • Special case: Native SQL Server access and Drag and Drop
  • WEBDEV and "Drag and Drop"
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
What is Drag and Drop?
Drag and Drop is used to transfer data between several controls with the mouse. This data can be moved between several controls found in the same application or in different applications.
You must distinguish between:
  • The source, object containing the data to copy or to cut.
  • The target, object into which the data must be copied.
To perform Drag and Drop:
  1. Select the data in the source with the mouse.
  2. Press the left mouse button and hold it down while moving data to the destination.
  3. Release the mouse button to validate the data transfer.
If data must be copied, the Ctrl key must be held down during the operation.
WINDEV and "Drag and Drop"
Several types of Drag and Drop can be performed in your applications:
Java In Java, only the automatic Drag and Drop is available.

Special case: Native SQL Server access and Drag and Drop

The Drag and Drop may not operate when using the SQL Server access via SQLnCli.
To restore a correct operating mode, the following code lines should be added into the initialization code of project:
WEBDEV and "Drag and Drop"
Related Examples:
Drag and drop Unit examples (WINDEV): Drag and drop
[ + ] Using Drag & Drop with the WLanguage functions.
The following topics are presented in this example:
1/ How to manage Drag&Drop between WINDEV controls
2/ How to manage Drag&Drop from the Windows file explorer to a WINDEV control
Drag & Drop is used to move objects via the mouse. "Drag" consists in clicking an object and moving the mouse while keeping the left button down. "Drop" consists in releasing the left mouse button.
Drag & Drop can be used with WINDEV on the List Box, TreeView, Table and Image controls.
WD Zip Complete examples (WINDEV): WD Zip
[ + ] This example presents the use of archiving WLanguage functions with compression.
The following topics are presented in this example:
1/ How do I create an archive?
2/ How do I compress and uncompress files?
3/ How do I manage the Drag&Drop from the file explorer of Windows to a TreeView control?
Summary of the example supplied with WINDEV:
This example allows you to create and read compressed archives in WDZ, ZIP, CAB and RAR format (in read-only). This feature can be very useful to manage the automatic backups. Furthermore, the example allows you to create multi-volume archives.
The features of Drag And Drop HTML5 Unit examples (WEBDEV): The features of Drag And Drop HTML5
[ + ] Using the Drag n Drop HTML 5 features in a WEBDEV site.
Minimum version required
  • Version 12
This page is also available for…
Click [Add] to post a comment