MBS Xojo Developer Conference and Training
Join us from 11th to 14th September 2013 in Koblenz.
Join us from 11th to 14th September 2013 in Koblenz.
Platforms to show: All Mac Windows Linux Cross-Platform
Drag & Drop
More on Drag & Drop than Realbasic can do out of the box.
- class DragFolderItemMBS
- method close
- property File as FolderItem
- property Finderflags as Integer
- property MacCreator as String
- property MacType as String
- class DragItemMBS
- method AddFlavorDataAsMemory(ID as integer, type as integer, data as memoryblock)
- method AddFlavorDataAsMemory(ID as integer, type as integer, data as memoryblock, OnlyPrivate as boolean)
- method AddFlavorDataAsString(ID as integer, type as integer, data as string)
- method AddFlavorDataAsString(ID as integer, type as integer, data as string, OnlyPrivate as boolean)
- method AddFlavorFileReference(ID as integer, file as DragFolderItemMBS)
- method AddFlavorFileReference(ID as integer, file as DragFolderItemMBS, OnlyPrivate as boolean)
- method close
- method Create as boolean
- method DragAllowableActions as integer
- method FlavorCount(ID as integer) as integer
- method FlavorDataFlags(ID as integer, type as integer) as integer
- method FlavorFileReferenceAvailable(ID as integer) as boolean
- method FlavorMovieAvailable(ID as integer) as boolean
- method FlavorPicture(ID as integer) as Picture
- method FlavorPictureAvailable(ID as integer) as boolean
- method FlavorSoundAvailable(ID as integer) as boolean
- method FlavorTextAvailable(ID as integer) as boolean
- method FlavorTextStyle(ID as integer) as string
- method FlavorTextStyleAvailable(ID as integer) as boolean
- method FlavorType(ID as integer, index as integer) as integer
- method FlavorUnicodeTextAvailable(ID as integer) as boolean
- method HasLeftSenderWindow as boolean
- method InsideSenderApplication as boolean
- method InsideSenderWindow as boolean
- method IsDroppedToTrash as boolean
- method ItemCount as integer
- method ItemGetRect(ID as integer, byref left as integer, byref top as integer, byref width as integer, byref height as integer)
- method ItemID(index as integer) as integer
- method ItemSetRect(ID as integer, left as integer, top as integer, width as integer, height as integer)
- method ModifiersCurrent as integer
- method ModifiersMouseDown as integer
- method ModifiersMouseUp as integer
- method MouseGlobalPinnedX as integer
- method MouseGlobalPinnedY as integer
- method MouseOriginX as integer
- method MouseOriginY as integer
- method MouseX as integer
- method MouseY as integer
- method SetDragAllowableActions(actions as integer, Local as boolean)
- method SetDragCGImage(CGImageHandle as integer, ImageOffsetX as single, ImageOffsetY as single, flags as integer)
- method SetDragImage(pic as picture, OffsetX as integer, OffsetY as integer, flags as integer)
- method SetDragImageWithRegion(pic as picture, OffsetX as integer, OffsetY as integer, flags as integer, regionhandle as integer)
- method SetDragPicture(pic as picture, ImageOffsetX as single, ImageOffsetY as single, flags as integer)
- method StartDrag(MouseX as integer, MouseY as integer, MouseModifiers as integer, Left as integer, Top as integer, Width as integer, Height as integer)
- property Handle as Integer
- property Lasterror as Integer
- property Release as Boolean
- property DragDropAction as integer
- property FlavorDataAsMemory(ID as integer, type as integer) as memoryblock
- property FlavorDataAsString(ID as integer, type as integer) as string
- property FlavorFileReference(ID as integer) as DragFolderItemMBS
- property FlavorText(ID as integer) as string
- const kDragActionAlias=2
- const kDragActionAll=&hFFFFFFFF
- const kDragActionCopy=1
- const kDragActionDelete=32
- const kDragActionGeneric=4
- const kDragActionMove=16
- const kDragActionNothing=0
- const kDragActionPrivate=8
- class DragReceiverMBS
- method AttachWindow(win as window) as boolean
- method AttachWindowHandle(win as integer) as boolean
- method close
- property WindowHandle as Integer
- event Received(drag as DragItemMBS) as boolean
- class DragTrackerMBS
- method AttachWindow(win as window) as boolean
- method AttachWindowHandle(win as integer) as boolean
- method close
- property WindowHandle as Integer
- event Dragging(message as integer, drag as DragItemMBS) as boolean
- 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 draggedImage as NSImageMBS
- method draggedImageLocation as NSPointMBS
- method draggingDestinationWindow as NSWindowMBS
- method draggingLocation as NSPointMBS
- method draggingPasteboard as NSPasteboardMBS
- method draggingSequenceNumber as integer
- method draggingSource as variant
- method draggingSourceOperationMask as integer
- method slideDraggedImageTo(screenPoint as NSPointMBS)
- property Handle as Integer
- property animatesToDestination as boolean
- property draggingFormation as integer
- property numberOfValidItemsForDrop as integer
- const NSDraggingFormationDefault = 0
- const NSDraggingFormationList = 3
- const NSDraggingFormationNone = 1
- const NSDraggingFormationPile = 2
- const NSDraggingFormationStack = 4
- const NSDragOperationAll_Obsolete = 15
- const NSDragOperationCopy = 1
- const NSDragOperationDelete = 32
- const NSDragOperationEvery = -1
- const NSDragOperationGeneric = 4
- const NSDragOperationLink = 2
- const NSDragOperationMove = 16
- const NSDragOperationNone = 0
- const NSDragOperationPrivate = 8
- 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
- const NSDraggingContextOutsideApplication = 0
- const NSDraggingContextWithinApplication = 1
- const NSDraggingFormationDefault = 0
- const NSDraggingFormationList = 3
- const NSDraggingFormationNone = 1
- const NSDraggingFormationPile = 2
- const NSDraggingFormationStack = 4
- 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 GetFileContents(index as integer) as string
- method GetFileDescriptors as WindowsFileDescriptorMBS()
- 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 HasPaths as boolean
- method HasPicture as boolean
- method HasRaw(format as integer) as boolean
- method HasText as boolean
- property Handle as Integer
- property HelperHandle as Integer
- 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
- 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
- const DRAGDROP_S_CANCEL = &H00040101
- const DRAGDROP_S_DROP = &h00040100
- const DRAGDROP_S_USEDEFAULTCURSORS = &h00040102
- const DROPEFFECT_COPY = 1
- const DROPEFFECT_LINK = 4
- const DROPEFFECT_MOVE = 2
- const DROPEFFECT_NONE = 0
- const DROPEFFECT_SCROLL = &h80000000
- const MK_CONTROL = 8
- const MK_LBUTTON = 1
- const MK_MBUTTON = &h10
- const MK_RBUTTON = 2
- const MK_SHIFT = 4
- const MK_XBUTTON1 = &h20
- const MK_XBUTTON2 = &h40
- const S_FALSE = 1
- const S_OK = 0
- class WindowsDropTargetMBS
- method AttachToControl(ctl as control, 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
- const DROPEFFECT_COPY = 1
- const DROPEFFECT_LINK = 4
- const DROPEFFECT_MOVE = 2
- const DROPEFFECT_NONE = 0
- const DROPEFFECT_SCROLL = &h80000000
- const E_INVALIDARG = &h80070057
- const E_OUTOFMEMORY = &h80000002
- const E_UNEXPECTED = &h8000FFFF
- const MK_CONTROL = 8
- const MK_LBUTTON = 1
- const MK_MBUTTON = &h10
- const MK_RBUTTON = 2
- const MK_SHIFT = 4
- const MK_XBUTTON1 = &h20
- const MK_XBUTTON2 = &h40
- const S_FALSE = 1
- const S_OK = 0
- 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
- const FD_ACCESSTIME = &h0010
- const FD_ATTRIBUTES = 4
- const FD_CLSID = 1
- const FD_CREATETIME = 8
- const FD_FILESIZE = &h0040
- const FD_LINKUI = &h8000
- const FD_PROGRESSUI = &h4000
- const FD_SIZEPOINT = 2
- const FD_WRITESTIME = &h0020
- const FILE_ATTRIBUTE_ARCHIVE = &h00000020
- const FILE_ATTRIBUTE_ATOMIC_WRITE = &h00000200
- const FILE_ATTRIBUTE_COMPRESSED = &h00000800
- const FILE_ATTRIBUTE_DIRECTORY = &h00000010
- const FILE_ATTRIBUTE_HIDDEN = &h00000002
- const FILE_ATTRIBUTE_NORMAL = &h00000080
- const FILE_ATTRIBUTE_OFFLINE = &h00001000
- const FILE_ATTRIBUTE_READONLY = &h00000001
- const FILE_ATTRIBUTE_SYSTEM = &h00000004
- const FILE_ATTRIBUTE_TEMPORARY = &h00000100
- const FILE_ATTRIBUTE_XACTION_WRITE = &h00000400
The items on this page are in the following plugins: MBS Real Studio Cocoa Plugin, MBS Real Studio Mac Plugin, MBS Real Studio WinDragDrop Plugin.
Links
MBS Xojo Plugins