PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
This content comes from an automatic translation.
  • "Drag and Drop"
  • Windows Vista (and later)
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Enables or disables the ability to perform "Drag and Drop" from the Windows explorer to a WINDEV window or control.
// Initialization of the dialog for the entire window
ExplorerAccept(True, WIN_Win1)
// Initialization of the dialogue so that a single field is the target of the "Drag & Drop".
// The project code must have the following declaration:
// EXTERN "WinConst.wl"
ExploreAccept(True, IMG_No Name1)
Event ("DragAndDrop", "IMG_No Name1", WM_DROPFILES)
Syntax
ExplorerAccept([<Drag and Drop> [, <Control or Window>]])
<Drag and Drop>: Optional boolean
  • True (default value) to allow Drag and Drop operations from the explorer,
  • False otherwise (Drag and Drop not allowed).
<Control or Window>: Control name or window name
Name of the control or window used for "Drag and Drop".
If this parameter is not specified, the "Drag and Drop" will be performed with the current window (by default).
Remarks

"Drag and Drop"

  • Once ExplorerAccept has been run, the explorer sends the WM_DROPFILES event to the specified window or control. The information coming from the explorer can be retrieved by ExplorerRetrieve.
  • Caution: With the MDI child windows, the name of the window used for "Drag and Drop" must be specified.

Windows Vista (and later)

In Windows Vista (and later) with the UAC mechanism enabled, "Drag & Drop" is not allowed by the system in the following cases:
  • If the executable is started from Windows with "Run as Administrator",
  • If the executable is created with a manifest giving it the administrator privileges.
Component : wd250std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment