drag-and-drop

wxPython: Handling drag-and-drop in a parent object - problem with event propagation

I have a wxPython program where I want to be able to drag groups of controls around to reorder them. Each group of controls is on a panel, and I want the panel object to handle the drag-and-drop. Currently it works if you click and drag on the panel itself, but it doesn't work if you click on any control inside the panel. This is beca...

Wpf (or silverlight) selecting and dragging multiple thumbs

Hello, I have a CustomPolyLine class which connects several thumbs. th user is able to drag those thumbs. now i need to be able to select and drag the whole structure, by selecting multiple thumbs. how can i do this ? ...

Why is drop allowed even if Effects = DragDropEffects.None is set?

Dragging happens from "source" to "target". When the source calls DoDragDrop() with allowedEffects as DragDropEffects.Copy, then I'm able to cancel the drop by setting Effects = DragDropEffects.None at the target (in DragOver event). But the same situation fails when I set my allowedEffects as DragDropEffects.Move. To reproduce the sit...

how to disallow a div's 'left' property from exceeding a specified number

I'm using this tiny drag plugin to drag div.slider horizontally across it's div.container. I do not want div.slider to be able to go past the bounds(don't want it to exit) div.container. so when div.slider reaches the very right side of it's container div.container, i want it to not allow the user to drag it any further right, so that it...

Drag&Drop problem in a TreeView Qt

Hi everyone, I'm facing a pretty strange problem and I need some help from your brains :) 1) I'm using Qt 4.6.0 2) I want to enable drag&drop (Qt::MoveAction with QAbstractItemView::InternalMove only) on items in a treeview. 3) I have my own model and a proxy model used to perform some sorting... 4) Drag&Drop works well except for o...

How to receive key events during a drag&drop?

Hi there, I'm currently trying to receive key events during a drag and drop, but it seems to me that the focus is taken away while dragging so that I can't listen to any key events. I'm dragging a JComponent subclass that implements KeyListener and requests the focus in the DragSourceListener's dragEnter method, but my assumption is th...

jQuery UI Drag & Drop

I tried using the solution posted here: http://stackoverflow.com/questions/811037/jquery-draggable-and-overflow-issue, but I can't seem to get it to work for myself. I have a container div (div#container) which wraps around all of my draggable divs. The div#container has its overflow set to auto. I've used the scroll option and set it to...

Drag and drop in dataGrid, custom cursor during drag not working (self answered, new question for the bounty)

EDIT 12/21/09, End of the day: I have managed to answer my own question so my bounty rep is lost to me :-( Anyway since my answer solves my problem I will award the bounty to anyone that can answer this. My solution uses AS to remove the the rollOut/rollOver while a user is dragging. In a dataGrid. How can you get the same result withou...

Moving objects on lower layers in Interface Builder

Interface builder allows you to move objects using drop and drag. Unfortunately, some objects may be on lower layers. These can be selected using shift-right click, but this doesn't allow drag and drop. Is there any way to achieve this? ...

Flex: How can I drag the actual element rather than a proxy?

Hi, I'm trying to implement a dragging system which can only be described as similar to dragging the map on Google Maps. I can set up dragging easily in Flex, but unfortunately the standard model of dragging i.e. dragging an element proxy and dropping it in another element is not what I'm after. Is there anything built into flex where ...

jQuery Drag & Drop into a Text Area

Using jQuery, and looking to let user drag a placeholder into a text area. Each placeholder is a <span> which has a class='placeholder'. The text area id is simply 'main_text'. So, user should be able to drag each placeholder span on top of text area, drop it, and then text gets inserted. Most desirable effect would be to insert text ...

Flex - Saving a new order of items of a HorizontalList through AMF

Hi, I've been working with the drag-and-drop of items inside an Horizontal List in Flex. It works fine, but now I need to save the new order through AMF in my database. I'm pretty sure it's quite easy, but I haven't figured it out yet. Is there a way to cycle (after the reordering) all the items so that I can get for each item its (new...

Jquery Draggable - How do I create a new draggable div on the fly that can then be dragged?

I'm creating a day planner using jquery, draggable and droppable. When a job is dragged from the unassigned column into a hour time slot, the original draggable item is removed, and a new div is placed into page, with the job details. This newly created div block of code, has all the parameters in it to make it draggable . When it's r...

drag and drop into a dialog

Hi, I am trying hard to make this work! I have a list of images inside a div which i make draggable. I also have a dialog which is triggered (open) when dragging starts. For some reason I cannot drop inside this dialog. I can drop everywhere else on the page except inside a dialog. here is my code: $(document).ready(function(){ ...

Drag & drop of a dynamically created shortcut

I have a C# application that creates shortcuts to launch other programs with specific arguments and initial directories. I would like the user to be able to drag a shortcut from the Windows form and drop it anywhere relevant like the desktop, the start menu, and so on but I don't really know how to handle that, could anyone point me in t...

Android - drag and drop - list rearrange

How can I create a list where I can rearrange list items with dragging list rows to another row and so on (to change to order)? Just like on the HTC Hero in the clocks app where you can rearrange the order of clocks? Wouter ...

flash as3 drag and drop with inertia

Hello I want to imitate the iPhone scroll behavior in a Flash app I am developing. The idea is to enable drag-drop with a certain amount of inertia/deceleration (you know, when you drop something while your cursor is still moving and the thing would continue moving for a moment and then stop). I am using the TweenMax library for my ani...

Flex: Drag and drop, simple example

Hi, I want to implement drag&drop possibilities in my application. Here is my source code: I added images to the container, and now want to be able to move them from element PieceContainer to element board (defined in the another class). I tried to define mouse move handler as it was shown here: http://livedocs.adobe.com/flex/3/html/he...

Show mousepoint while doing drag and drop in WPF

Hi. I am using Lesters DragAndDropManager to get the drag and drop function in my application and i really like the way it's implemented, but I have one small problem and that is that I want to show the mouse cordination during the drag in my statusbar, so how do I send the mouseposition from the DropManager to my xaml code. I have tr...

Get list item value from DragEventArgs

I'm trying to drag a listitem from a listbox onto a picture box. The list item is a persons name. The value member of the list item is the ID of the people listed. When I drop the list item onto the picture box I want to use the persons ID to query a photo and load that photo. I can't seem to access the value though, only the name te...