ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Drag and drop functions
  • What is Drag and Drop?
  • WINDEV and "Drag and Drop"
  • Special case: Native SQL Server Connector and Drag and Drop
  • WEBDEV and "Drag and Drop"
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
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 Connector and Drag and Drop

The Drag and Drop feature may not work when using the SQL Server Connector (via OLE DB or via ODBC)..
To restore a correct operating mode, the following lines of code should be added into the initialization code of project:
LoadDLL("ole32")
API("ole32","ColnitializeEx",0,2)
WEBDEV and "Drag and Drop"
WEBDEV - Browser codePHP WEBDEV supports Drag and Drop via HTML 5. You have the ability to implement:
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 to create an archive?
2/ How to compress and uncompress files?
3/ How to manage 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…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help