drag-and-drop

Drag and drop between List control and Chart

Hi All, I am trying to implement a drag and drop function between a list control and a columnchart in Flex3. List items should, when dragged and dropped on the chart, be displayed graphically in the columnchart. Alas, dropping the listitems on the chart does not seem to result in a proper graph. Here my code till so far with regard to t...

c# winforms drag and drop visualisations (painting)

Hello, I'm building a type of button grid, and the user needs the ability to drag and drop buttons to places within the grid (basically re-ordering). I have the drag and drop done but I want to add extra visual queues for the user. The problem is as far as I can tell the control doesn't repaint itself during the drag and drop process...

JQuery-UI Drag, Drop and Re-Drag Clones on Re-Drag

I am using the following code to extend the JQuery-UI demos included with the download. I am trying to set up a container that the user can drag items into and then move the items around within the container. I incorporated the answer from http://stackoverflow.com/questions/867469/jquery-draggable-clone which works with one problem. ...

Drag and Drop like Winspector Spy

I was wondering if anybody could give insight on how to implement the window selector in Winspector Spy. Basically, I would want to provide a panel that I could mouse down on, drag over to another processes window (or sub window) and get something like the HWND out of it. Ideally, I would do this in C#, but if it's only possible by wra...

Is it possible to Drag-and-Drop images between Web sites (applications)?

There are a number of questions on stackoverflow about drag-and-drop but I can't see that any relate to this question specifically. Question: Is it possible to drag-and-drop an image from one Web application (or site) to another Web application (not the same window etc.)? I'm not looking for specific technologies that may help one achi...

How to determine presence of HTML5 drag'n'drop file upload API (like the one from FF3.6)

I am writing an application that's supposed to support HTML5 drag/drop API for file, much like the on described here. I would like to perform a programmatic check on whether the browser support this kind of madness :) A solution that works for now is checking whether the browser provides a FileReader class, like this: if (typeof(FileR...

Passing data around with QMimeData in Qt drag and drop

I'm trying to understand how data gets passed around when using drag and drop in Qt. From what I understood from the examples I've been studying, you first define a widget as draggable by overriding methods inherited through QWidget. In the implementation of the overridden method, the examples I've been looking at instantiate a pointer ...

listbox dragdrop in wpf

I am currently porting a windows forms application to wpf. There is a listbox with filenames in it. It should be possible to drag (multiple) items to the windows explorer. This was easy in with the old windows form, but I can't find a way how this can be done in wpf. This was the code I used with windows forms: void listView1_ItemDrag...

How can we get the location relative to window form?

I am implementing an application which can be drag and drop images in a panel and so I want to make sure that the image is placed within the panel and it is visible the whole image when is dropped.In that case I want to get the current cursor position when I doing drag and drop event. So how can I get the cursor location related to panel...

Drag-and-drop to canvas in wxPython

Do you know if there is an easy way to drag-and-drop elements (icons or buttons) into a canvas and create different drawings on it as a result? The idea is to have a set of objects and let the user drag them into a drawing space. In the worst case the user could just click on the icon/button, and then click on the canvas and draw the e...

Overlapping labels in Qt fridge magnets example

I want to modify the fridge magnets example provided with Qt in a way that when I drag a label and drop it over another, it will push the label beneath the dragged label to the side, so they will never overlap one another. I've seen how collision is detected in the colliding mice example, where it uses a QGraphicsScene to draw the QGrap...

Cocoa: is it safe to assume that the destination URL for delivering on an NSFilesPromisePboardType is a file URL?

Is it safe to assume that the destination URL passed to an outlineView:namesOfPromisedFilesDroppedAtDestination:forDraggedItems: method (as specified by the NSOutlineViewDataSource protocol) is always a file URL? In the implementation of such a method I'm making use of NSDictionary's writeToURL:atomically: to write out a ".webloc" prope...

Is there any Javascript library that provides drag'n'drop creation/editing of form elements?

I am writing a web application that lets a user create their own forms by dragging and dropping input elements (textfields, textareas, etc.). Currently, the user is able to add / reorder (up or down) / remove form elements, but I need to make them freely draggable. Some time ago I have seen a tool written in Javascript that lets a user...

find id of the element where the control is dropped using jquery

Hi, I have got a table with several rows and columns. I have a span in one of the td which I want to drag. I can drag that span and can get the ID of the td where the span lies but I can anyone tell me how can I get the ID of the td where I drop that span. Now I can get the ID in firefox using event.originalTarget.id of the drop event, ...

DoDragDrop - get target window handle

I'm using the following code to drag&drop data from listbox into other applications: Dim data As New DataObject(DataFormats.UnicodeText, ListBox1.Text) ListBox1.DoDragDrop(data, DragDropEffects.Copy Or DragDropEffects.Copy) How can I get a handle of the window that receives the data? I'm looking to build something like "Finder...

dragging in scratch

how do drag costumes during execution in scratch? ...

VS2010 - Toolbox Drag-And-Drop in custom Language Service/Editor

Hi, My questions are: 1: Is Drag-And-Droping Toolbox controls (for example WPF controls) in a custom Language (Service) TextView possible? 2: Would I need a custom editor? Thanks! Satixx ...

Qt Dropsite Example

In QtDemo there is an example called Dropsite in which an image can be dragged and dropped into the field to be displayed. This example used to work in an older version of Qt and works initially in 4.6 if you run it from qt\examples\draganddrop\dropsite\release folder. But if you load the project file into Qt Creator and recompile it, it...

How can I implement drag-out-to-delete in Flex?

I have a List component from which I'd like to be able to remove items using drag & drop, but without having a specific target. If you use the mac, the behaviour I'm looking for is something like what the Dock uses; when you drag something out of the bounds of the control it should get an icon that indicates that it'll be deleted (OSX us...

Drag n drop from filesystem into a web application

Hi, I am investigating on a web framework/techno that allows to drag n drop files from the filesystem into a web application. The purpose is of course to upload those files into an application server. In Flex it seems to be not possible (although it works with AIR). I have found a way with Google Gears, but this force the user to insta...