drag-and-drop

How to create a "Shell IDList Array" to support drag-and-drop of virtual files from C# to Windows Explorer?

I started trying to implement drag-and-drop of virtual files (from a C# 4/WPF app) with this codeproject tutorial. After spending some time trying to figure out a DV_E_FORMATETC error, I figured out I need to support the "Shell IDList Array" data format. But there seems to be next to zero documentation on what this format actually does. ...

How to drag and drop an item from listview to treeview

Please provide some code example. Thanks. ...

jQuery Drag and Drop Checking Question

i am new to using jQuery and I just want to know how I can check whether a draggable object has been removed from the droppable object. Example, i have a dog and I dragged it to a doghouse which has a lightbulb that will light up indicating that the dog is there. When i drag the dog out of the doghouse, the lightbulb should go off again...

Building drag and drop interface on iphone

I am trying to build an app which will have a bunch of cards that the user needs to drag and drop them onto specific drop zones. How would one go about detecting this and if the card is not on the drop zone then it should slide back. Any suggestions on how to structure this app? ...

[wpf] drag-drop-operations causing drag operations to be invoked more than once.

I want to enable drag and drop operations in my application (c#, wpf). However I’ve concluded that my current model sometimes calls event duplicated. In the sample code below one sees the events that I’ve added to buttons in a stack-panel. The Stack-panel is data-bound against a collection of IToolboxItem. I’ve determined that due STA e...

Rendering Dragged object during drag

Hello, I have been stuck on this problem for a while now. I want to drag a row in a jtable to reorder it. But I really want the user to see the row while dragging it and not just the default "drag" rectangle symbol. So I took a look at the java DnD tutorial finding it very useful, but.. The problem is that I still dont know which meth...

JavaScript: Capturing right click and disabling menu only within certain element

I have coded a jquery script where there is a small grid on screen and using drag and drop users can place tiles on the grid (snaps in place). Currently if you hover over a tile it fades in the option to rotate, but I would much prefer it if you could right click to rotate (making it more natural). I understand blocking right click compl...

JavaScript & jQuery; how to do snapping drag and drop

I am looking for advice from all you wonderful people on the best way to do snapping drag and drop. As part of a simple board game I am currently coding in JS (using jQuery for effects) users should be able to drag tiles from a dock onto a grid. How does one complete the following objectives (preferably using jQuery). Enable d...

Handling mouse movement during drag and drop outside the bounds of the drag source.

I have a control within a ScrollViewer where the user can drag and drop elements around. I want the user to be able to scroll by dragging an element outside the bounds of the ScrollViewer, like how Windows Explorer will automatically scroll down if you drag a file past the bottom of the window. I thought this would be simple to implemen...

WPF TreeView drag and drop using preview

I'm handling drag and drop events in a TreeView using PreviewMouseDown, PreviewMouseMove and PreviewMouseUp, however, there is an issue. In my PreviewMouseDown handler, I set everything ready in case there's a drag started (detected in the Move event), however I set e.Handled = true. This means that standard selection events don't get g...

Implementations details of drag and drop of file path in cocoa.

Hi, I'm trying to get a part of my window to react to drag and drop. In this case to copy the file path to the file being dropped on the view. I have looked over some documentation but I still have some problems to see exactly where I should implement my methods for drag and drop. I have seen some examples but almost all of them assu...

Drag and Drop in Silverlight with F# and Asynchronous Workflows

Hello everyone! I'm trying to implement drag and drop in Silverlight using F# and asynchronous workflows. I'm simply trying to drag around a rectangle on the canvas, using two loops for the the two states (waiting and dragging), an idea I got from Tomas Petricek's book "Real-world Functional Programming", but I ran into a problem: Unl...

How to get the child of an element being dragged with jQuery UI

I have the following html: <div id="gallery"> <ul> <li> <a href="url I want to get">link</a> </li> </ul> </div> and some jQuery that allows it to be dropped on another div: $trash.droppable({ accept: '#gallery > li', activeClass: 'ui-state-highlight', drop: function(ev, ui) { ...

Cocoa Drag and Drop, reading back the data

Ok, I have a NSOutlineView set up, and I want it to capture PDF's if a pdf is dragged into the NSOutlineView. My first question, I have the following code: [outlineView registerForDraggedTypes:[NSArray arrayWithObjects:NSStringPboardType, NSFilenamesPboardType, nil]]; In all the apple Docs and examples I've seen I've also seen someth...

Receive Drag'n'Drop in entire wxWidgets window?

I'm receiving drag'n'dropped files in my WxWidgets application via the common wxFileDropTarget manner. In windows, a file can be dropped anywhere on my window, however in OS X only if I drop the file over a blank area of the window does it work. I'm doing the SetDropTarget to my main window and would like to avoid having to do this to ev...

How to drag-and-drop on custom Swing components

How can I implement drag and drop on custom components, e.g. my own JPanel subclasses? What I need is full Swing-like drag and drop support. With TransferHandlers, DropTargetListeners etc. So the trivial mousePressed() and mouseReleased() is not what I'm looking for. ...

Problem dragging Winforms TreeNode to WPF List

I'm having some problems dragging a WinForms TreeNode to a WPF ListBox. I set the ListBox.AllowDrop = true and subscribe the DragEnter and Drop events. The events are raised when they should but I think the Args are a bit messed up. I'm trying to filter the objects that can be dropped into this specific target. I just started by trying...

Drag and Drop in GWT using gwt dnd

Hi, I have been really struggling to get Drag and Drop working in GWT. Last 3 days, I was trying to create a basic drag and drop application and failed. Currently I can drag it around, but I am unable to drop to any location. How can we solve it? Do we need to modify onDragEnd - I am under the impression that unless I specifically h...

Drag-n-Drop on contentEditable elements

There are numerous WYSIWYG editors available on the internet, but I'm yet to find one that implements some form of drag-n-drop implementation. It is easy to create one's own editor, but I want to the user to be able to drag elements (ie. tokens) from outside the editable area and have them drop it at a location of their choice inside th...

How to re-use controls from ItemsControl in the StackPanel

I am working on a drag & drop. I need to move a control, that originally in the ItemsControl to a StackPanel. I keep getting "Specified Visual is already a child of another Visual". I've already took the item out of the ItemsSource of the ItemsControl. After control is removed from the ItemsControl, the Parents, or TemplatedParents o...