Help / WLanguage / WLanguage functions / Controls, pages and windows / Drag and drop functions
  • "Drag and Drop" from the explorer
ExplorerAccept (Example)
"Drag and Drop" from the explorer
The following example is used to retrieve files by "Drag and Drop" from the Windows explorer. The names of files are displayed in a Trace window.
// Initialize the dialog
ExplorerAccept(True, WIN_Win1)
// Branch the WM_DROPFILES event
Event("Explorer", "*.", 563)
PROCEDURE Explorer()
Nb is int
i is int
// Retrieve the number of files
Nb = ExplorerRetrieve(_EVE.wParam)
// Retrieve all the files
FOR i = 1 TO Nb
Trace(ExplorerRetrieve(_EVE.wParam, i))
// End of dialog
ExplorerAccept(False, WIN_Win1)
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help