Platforms to show: All Mac Windows Linux Cross-Platform
WinDataObjectMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Drag & Drop | MBS Win Plugin | 10.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Example:
// take some picture
dim p as Picture = LogoMBS(500)
// create data object
dim w as new WinDataObjectMBS(p)
- 4 properties
- property DragImage as Picture
- property Handle as Integer
- property HelperHandle as Integer
- property Lasterror as Integer
- 27 methods
- method AddDragImage(pic as picture, width as Integer, height as Integer, x as Integer, y as Integer)
- method AddDragImage(pic as picture, width as Integer, height as Integer, x as Integer, y as Integer, ImageBackgroundColor as color)
- method AddFiles(files() as folderitem)
- method AddFiles(pathes() as string)
- method AddPicture(pic as picture)
- method AddRaw(format as Integer, data as string)
- method AddText(text as string)
- method Constructor
- method Constructor(files() as folderitem)
- method Constructor(pic as picture)
- method Constructor(text as string)
- method Formats as String()
- method GetFileContents(index as Integer) as string
- method GetFileContents(index as integer, byref IsPath as boolean) as string
- method GetFileDescriptors as WindowsFileDescriptorMBS()
- method GetFileName as string
- method GetPaths as folderitem()
- method GetPathStrings as string()
- method GetPicture as picture
- method GetRaw(format as Integer) as string
- method GetText as string
- method HasFileDescriptors as boolean
- method HasFileName as boolean
- method HasPaths as boolean
- method HasPicture as boolean
- method HasRaw(format as Integer) as boolean
- method HasText as boolean
- 17 constants
- const CF_BITMAP = 2
- const CF_DIB = 8
- const CF_DIBV5 = 17
- const CF_DIF = 5
- const CF_ENHMETAFILE = 14
- const CF_HDROP = 15
- const CF_LOCALE = 16
- const CF_METAFILEPICT = 3
- const CF_OEMTEXT = 7
- const CF_PALETTE = 9
- const CF_PENDATA = 10
- const CF_RIFF = 11
- const CF_SYLK = 4
- const CF_TEXT = 1
- const CF_TIFF = 6
- const CF_UNICODETEXT = 13
- const CF_WAVE = 12
This class has no sub classes.
Some methods using this class:
- WindowsDragSourceMBS.DoDragDrop(dataObject as WinDataObjectMBS, OKEffect as Integer, byref Effect as Integer) as Integer
Some events using this class:
- WindowsDropTargetMBS.DragEnter(dataObject as WinDataObjectMBS, keystate as Integer, x as Integer, y as Integer, byref effect as Integer) as Integer
- WindowsDropTargetMBS.Drop(dataObject as WinDataObjectMBS, keystate as Integer, x as Integer, y as Integer, byref effect as Integer) as Integer
Some examples using this class:
- /Win/Drag and Drop/Attachment Drop from Outlook
- /Win/Drag and Drop/File Drag
- /Win/Drag and Drop/File Drag Multi
- /Win/Drag and Drop/File Drop
- /Win/Drag and Drop/Folder Drag
- /Win/Drag and Drop/Picture Drag with Mask
- /Win/Drag and Drop/Picture Drop
- /Win/Drag and Drop/Picture Drop on control
- /Win/Drag and Drop/Text Drag
- /Win/Drag and Drop/Text Drop
Blog Entries
- MonkeyBread Software Releases the MBS Xojo Plugins in version 20.4
- MBS Xojo Plugins, version 20.4pr3
- MBS Xojo plug-ins in version 16.0
- MBS Xojo / Real Studio Plugins, version 16.0pr8
- More Drag & Drop on Windows
- MBS Xojo / Real Studio Plugins, version 15.5pr3
- MBS Real Studio Plugins, version 11.2pr4
- MBS REALbasic Plugins, version 10.6pr6
- MBS REALbasic Plugins, version 10.6pr5
- MBS REALbasic Plugins, version 10.5pr5
Xojo Developer Magazine
The items on this page are in the following plugins: MBS Win Plugin.

Links
MBS Xojo blog