Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Back to WindowsDropTargetMBS class.
WindowsDropTargetMBS.AttachToControl(ctl as control, showDragImage as boolean = true) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Drag & Drop | MBS Win Plugin | 11.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
This method unregistered any existing drop target on the control (including the one from Xojo).
Registers the specified control as one that can be the target of an OLE drag-and-drop operation and specifies the WindowsDropTargetMBS instance to use for drop operations.
ctl: The control that can be a target for an OLE drag-and-drop operation.
showDragImage: Whether we should support the drag image methods in the newer Windows versions.
This function returns S_OK on success. Other possible values include the following.
Return code | Description |
DRAGDROP_E_INVALIDHWND | Invalid handle returned in the hwnd parameter. |
DRAGDROP_E_ALREADYREGISTERED | The specified window has already been registered as a drop target. |
E_OUTOFMEMORY | Insufficient memory for the operation. |
See also:
WindowsDropTargetMBS.AttachToControl(ctl as DesktopControl, showDragImage as boolean = true) as integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Drag & Drop | MBS Win Plugin | 22.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
This method unregistered any existing drop target on the control (including the one from Xojo).
Registers the specified control as one that can be the target of an OLE drag-and-drop operation and specifies the WindowsDropTargetMBS instance to use for drop operations.
ctl: The control that can be a target for an OLE drag-and-drop operation.
showDragImage: Whether we should support the drag image methods in the newer Windows versions.
This function returns S_OK on success. Other possible values include the following.
Return code | Description |
DRAGDROP_E_INVALIDHWND | Invalid handle returned in the hwnd parameter. |
DRAGDROP_E_ALREADYREGISTERED | The specified window has already been registered as a drop target. |
E_OUTOFMEMORY | Insufficient memory for the operation. |
See also:
WindowsDropTargetMBS.AttachToWindow(win as DesktopWindow, showDragImage as boolean = true) as integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Drag & Drop | MBS Win Plugin | 22.0 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
This method unregistered any existing drop target on the window (including the one from Xojo).
Registers the specified window as one that can be the target of an OLE drag-and-drop operation and specifies the WindowsDropTargetMBS instance to use for drop operations.
Win: The window that can be a target for an OLE drag-and-drop operation.
showDragImage: Whether we should support the drag image methods in the newer Windows versions.
This function returns S_OK on success. Other possible values include the following.
Return code | Description |
DRAGDROP_E_INVALIDHWND | Invalid handle returned in the hwnd parameter. |
DRAGDROP_E_ALREADYREGISTERED | The specified window has already been registered as a drop target. |
E_OUTOFMEMORY | Insufficient memory for the operation. |
See also:
WindowsDropTargetMBS.AttachToWindow(win as window, showDragImage as boolean = true) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Drag & Drop | MBS Win Plugin | 10.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop only |
This method unregistered any existing drop target on the window (including the one from Xojo).
Registers the specified window as one that can be the target of an OLE drag-and-drop operation and specifies the WindowsDropTargetMBS instance to use for drop operations.
Win: The window that can be a target for an OLE drag-and-drop operation.
showDragImage: Whether we should support the drag image methods in the newer Windows versions.
This function returns S_OK on success. Other possible values include the following.
Return code | Description |
DRAGDROP_E_INVALIDHWND | Invalid handle returned in the hwnd parameter. |
DRAGDROP_E_ALREADYREGISTERED | The specified window has already been registered as a drop target. |
E_OUTOFMEMORY | Insufficient memory for the operation. |
See also:
The items on this page are in the following plugins: MBS Win Plugin.