Platforms to show: All Mac Windows Linux Cross-Platform
Drag & Drop
More on Drag & Drop than Xojo can do out of the box.
- Globals
- InstallDragImageMBS
- SetNextDragImageMBS(Img as NSImageMBS, DragItemCount as Integer = 1)
- Classes
- class NSDraggingImageComponentMBS
- method Constructor(key as string)
- shared method draggingImageComponentWithKey(key as string) as NSDraggingImageComponentMBS
- shared method NSDraggingImageComponentIconKey as string
- shared method NSDraggingImageComponentLabelKey as string
- property Handle as Integer
- property contents as Variant
- property frame as NSRectMBS
- property key as string
- class NSDraggingInfoMBS
- method Constructor
- method Constructor(Handle as Integer)
- method namesOfPromisedFilesDroppedAtDestination(dropDestination as FolderItem) as string()
- method promisedFilesDroppedAtDestination(dropDestination as FolderItem) as FolderItem()
- method slideDraggedImageTo(screenPoint as NSPointMBS)
- property animatesToDestination as boolean
- property draggedImage as Variant
- property draggedImageLocation as NSPointMBS
- property draggingDestinationWindow as Variant
- property draggingFormation as Integer
- property draggingLocation as NSPointMBS
- property draggingPasteboard as Variant
- property draggingSequenceNumber as Integer
- property draggingSource as Variant
- property draggingSourceOperationMask as Integer
- property Handle as Integer
- property numberOfValidItemsForDrop as Integer
- class NSDraggingItemMBS
- method Constructor(item as NSPasteboardItemMBS)
- method item as Variant
- method setDraggingFrame(frame as NSRectMBS, contents as Variant)
- property Handle as Integer
- property draggingFrame as NSRectMBS
- class NSDraggingSessionMBS
- method Constructor
- method draggingLeaderIndex as Integer
- method draggingLocation as NSPointMBS
- method draggingPasteboard as NSPasteboardMBS
- method draggingSequenceNumber as Integer
- property Handle as Integer
- property animatesToStartingPositionsOnCancelOrFail as boolean
- property draggingFormation as Integer
- class WinDataObjectMBS
- 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
- property DragImage as Picture
- property Handle as Integer
- property HelperHandle as Integer
- property Lasterror as Integer
- class WindowsDragSourceMBS
- method DoDragDrop(dataObject as WinDataObjectMBS, OKEffect as Integer, byref Effect as Integer) as Integer
- property Handle as Integer
- event GiveFeedback(Effect as Integer) as Integer
- event QueryContinueDrag(EscapePressed as boolean, KeyState as Integer) as Integer
- class WindowsDropTargetMBS
- method AttachToControl(ctl as control, showDragImage as boolean = true) as Integer
- method AttachToControl(ctl as DesktopControl, showDragImage as boolean = true) as integer
- method AttachToWindow(win as DesktopWindow, showDragImage as boolean = true) as integer
- method AttachToWindow(win as window, showDragImage as boolean = true) as Integer
- property Handle as Integer
- property Helper as Integer
- event DragEnter(dataObject as WinDataObjectMBS, keystate as Integer, x as Integer, y as Integer, byref effect as Integer) as Integer
- event DragLeave as Integer
- event DragOver(keystate as Integer, x as Integer, y as Integer, byref effect as Integer) as Integer
- event Drop(dataObject as WinDataObjectMBS, keystate as Integer, x as Integer, y as Integer, byref effect as Integer) as Integer
- class WindowsFileDescriptorMBS
- property ClassID as String
- property CreationTime as Double
- property FileAttributes as Integer
- property FileName as String
- property FileSize as Int64
- property Flags as Integer
- property IconHeight as Integer
- property IconWidth as Integer
- property Index as Integer
- property LastAccessTime as Double
- property LastWriteTime as Double
- property PointX as Integer
- property PointY as Integer
- class NSDraggingImageComponentMBS
- Class Extensions
- class DragItem
- method NSDraggingInfoMBS as NSDraggingInfoMBS
- class DragItem
- Examples
- /Images/JPEG/JPEG movie
- /Images/JPEG/VirtualVolume Demo
- /MacCG/CoreGraphics PDF/Getpicture PDF
- /MacCocoa/Addressbook/Addressbook Picker
- /MacCocoa/Addressbook/Extract Vcard
- /MacFrameworks/Vision/Vision Object Detection/Saliency Image Requests
- /MacOSX/Loginitems
- /Picture/Icon/DropFile to see icon
- /Picture/Image effects/imagetransformation
- /Util/FolderSize
- Blog Entries
- MonkeyBread Software Releases the MBS Xojo Plugins in version 21.1
- 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
- More Drag & Drop on Windows
- MonkeyBread Software Releases the MBS Real Studio plug-ins in version 13.1
- 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
Release notes
- Version 23.0
- Added parameter for SetNextDragImageMBS function to define how many drag items you have. Default is one.
- Version 21.1
- Updated InstallDragImageMBS to support newer API and work in Xojo 2020 or newer.
- Version 20.4
- Added support to WinDataObjectMBS class to receive email attachments with email messages from Outlook.
- Version 20.3
- Added GetFileContents with isPath parameter to WinDataObjectMBS class.
The items on this page are in the following plugins: MBS Images Plugin, MBS MacCG Plugin, MBS MacCocoa Plugin, MBS MacControls Plugin, MBS MacFrameworks Plugin, MBS MacOSX Plugin, MBS Picture Plugin, MBS Util Plugin, MBS Win Plugin.