drag-and-drop

Delphi - How do I fix this strange TGrid behaviour?

Delphi 2007. I have a TGrid with more rows than will fit on the screen, and the height of the grid is such that there is a partially drawn row at the bottom. When I click on this partial row, it jumps up to be fully visible (via a procedure called 'ClampInView' in Grids.pas). But it doesn't stop. Since the mouse is now over a new partia...

drag and drop in winforms or wpf

i would like to create a simple winforms or wpf application where i can drag and drop virtual "cards". this below is not exactly what i want to do, but it the closest thing that i found on the web to represent the user interface. http://www.greenpeppersoftware.com/confluence/plugins/advanced/gallery-slideshow.action?imageNumber=1&p...

dragging user controls from one flowlayoutpanel to another

how can i add drag and drop capability of a custom usercontrol from 2 flowlayoutpanels? Usercontrol keeps being null on the following line of code below private void flowLayoutPanel1_DragDrop(object sender, DragEventArgs e) { UserControl userControl = e.Data.GetData(typeof(UserControl)) as UserControl; ...

WPF drag & drop between containers

I've got a container, say a Grid. It has two containers, say StackPanels. StackPanel #1 has some rectangles. What's the best way to enable a user to drag a rectangle and drop it in the StackPanel #2 (and have that rectangle be a child of StackPanel #2). I've got the drag bit sussed - the only thing that's unclear is whether to actual...

Why doesn't my custom control receive drag/drop events?

I've written a custom control (an immediate child of Forms.Control) in C++/CLI that will offload most of its processing and all of its painting to a separate legacy-ish MFC control. I'm wrapping this control in a C# application. I need to be able to drag items onto the C++/CLI control from a UserControl on the same form in the applicat...

Is this a good way to factor DragDrop logic out of a control?

I was recently adding some drag/drop functionality to a usercontrol that I'm creating, and I decided that it made sense to factor the specifics of drag/drop out for subsequent testing, etc. The core logic is in DragOnMouseMove<TInput>(). (Formatting trimmed for brevity) internal class DragState { private static readonly Size deadZ...

Making loaded image draggable actionscript 3

Hi, i want to load an image to stage using Loader and then I want to make it draggable. Loading is done by selecting from tilelist as seen below, but I have no idea about drag and drop in AS3, can anybody help me? I want to make it as simple as possible. Here is my code to load image: var charge1:Loader = new Loader(); addChild(charge1...

Drag & Drop in KListWidget (PyQt/PyKde programming)

I'm developing a little app (precisely it's a KDE4 plasmoid) in PyQt/PyKde. In my app I have a KListWidget filled with some rows, see this picture: I need to implement a drag&drop action for the list rows, for example I should be able to put any file over a row, then the app will send this file to the name on the list. The list has...

Logic behind drag and drop

I am wondering the "how it works" and "how it should be designed and implemented" side of the basic drag & drop functionality. I have never yet implemented such a functionality. I am planning to do so for one of my projects and I do have some ideas on how to implement it. I wanted to make sure I am on the right path and that you people...

Drag'n drop between two unrelated web applications

Assume you have two web applications running in two different tabs/windows in your browser. Is there a predefined interface in IE, Firefox or Google Chrome to pass data between the two windows? If so it should be possible to implement drag'n drop, right? Because I don't think this is possible I wonder if the same could be achieved with F...

Make DIV accept and handle drop via JavaScript possible?

I've been googling and trying this for a good while now, but comes nowhere. So here goes: What I want to do is to drop text on a DIV tag and handle that with JavaScript. Something along these lines: <script type="text/javascript"> function handleDrop(sender, args) { $('#theDiv').html(args.textfromdrop); } </script> <div id="theDiv...

Image drag and drop in wpf application.

I want to drap and drop a image on wpf application form. Can any one give me the code and other links for that? ...

jQuery Draggable and overflow issue

I am having an undesired effect when I drag a div from a container div which is set as overflow: scroll. I have found an example of someone else where they have had the issue but I have been unable to find a resolution Example on Paste bin What happens is that the scroll is just increased, I can see why this would be the desired behav...

How can I use Drag-and-Drop in Swing to get file path?

I have a JTextField in my swing application that holds the file path of a file selected to be used. Currently I have a JFileChooser that is used to populate this value. However, I would like to add the ability for a user to drag-and-drop a file onto this JTextField and have it place the file path of that file into the JTextField instead ...

Flex: Manually adding drag and drop support

I have a container that contains an image that I need to drag from one container to the other. The Flex language references don't specify anything useful, nor did I find a tutorial for how to do this. How do I manually add drag and drop support for elements like images? Any help would be greatly appreciated. ...

Scriptaculous / prototype Draggable and overflow issue

I have a problem similar to this one (here): I am having an undesired effect when I drag a div from a container div which is set as overflow: scroll. I have found an example of someone else where they have had the issue but I have been unable to find a resolution Example on Paste bin What happens is that the ...

Drag-and-drop files onto an NSTableView?

I have an NSTableView which I wish to allow users to drag-and-drop video files onto. When they drop the file, it'll get added as a row in the table view. How would I go about doing this? Currently the tableview's takes its data from an Array Controller (which takes its data from a NSMutableArray) I found this documentation, but cannot ...

How to create igoogle layout(drag & drop & store) using PHP and AJAX?

In igoogle, we can drag & drop the modules and then if we quit the browser and open it again, the position of each module still the same. I have tested couple of things: When not logged in, igoogle store the modules position in my cookies(cache). Because if I clear cache, it goes back to original position. When I logged in, after posit...

How to drag-and-drop a remote file in wxWidgets ?

I've got a wxWidgets application which show files located on a remote server (FTP, SSH, ...) and I'd like to allow the user to drag and drop the file locally. But it seems that wxDropSource/wxDataObject does not allow me to do that. I have already done the same kind of things directly under Windows using this kind of techniques. Is it ...

Drag and Drop control for Silverlight

Recently I needed to add drag & drop functionality to a Silverlight application. Can anyone recommend a good drag & drop control? ...