drag-and-drop

Draw a User Defined Rectangle

Hi, My current code allows me to draw rectangles from a user defined spot but not in the way in whihc i desire. I need it to be like you would do it in paint, here is my current code: namespace SimpleDraw2 { /// /// Description of MainForm. /// public partial class MainForm : Form { bool IsMouseDown = fals...

Silverlight DragDrop.DoDragDrop()

I am really struggling to get a simple drag and drop sample working in Silverlight 4. Here's what I have: XAML <UserControl x:Class="TestDragDrop.MainPage" Width="350" Height="200" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt; <Grid Background="...

How to fix mouse moving (Drag & Drop)

How to fix mouse moving, to a pointer was always located on the middle of an element and worked synchronously? Please see my full example like this example ...

I have a html list item. When I drag and drop the item to the webpart zone , a image should load .

I have a html list item and image control on the webpart zone . I'm using jquery to drag and drop the item from the list.When I drag and drop the item from the list to the webpart zone , a image should load on the webpart zone. ? Plese let me know how to achive this . ...

Restoring a Visual Element to its initial position in WPF application

Hi there, I'm implementing a WPF application where one can drag & drop a element in a designated area where this element is restored to its initial position. The drag & drop is working, and already have the events for the dragging and drop actions; my problem is how to restore the visual element to the correct position, previously stored...

Is there a known bug in Visual Studio 2008 for using drop target in C++ when running Visual Studio as administrator?

We have an application that allows a user to drag a picture to a window and that window is a drop target (using OLE). When this code is run in the debugger and the Visual Studio instance is run as administrator (right click from desktop) then the target drop is not allowed. If the exe is run on its own it works fine. If the visual stu...

How to drag div into boxes

I have the follow code that allows me to drag a div into 3 boxes. I am trying to get the draggable div to fit in the box from onces you dropped on to it, Because at the moment it will drop onit it but it allows it to be dropped anywhere on the window how can i stop that from happening? <div id="drop1" class="dropzone">Accepts the eleme...

How to specify data types when draging content to Excel

I am initiating drag and drop from my WinForms application using this simple IDataObject data = new DataObject(); string textToExcel = "Hello\tWorld\t1\t2\nHello\tWorld\t1\t2\n" data.SetData(DataFormats.Text, textToExcel); I works fine when dropped on Excel, it ends up nicely in columns and rows. Problem is that Excel does not know th...

DragAndDrop selectedItems of one silverlight Datagrid into another.

Currently I am using "DataGridDragDropTarget" to Drag a row from one datagrid to another, but a client want to be able to select multiple rows from one datagrid and drop them into another. I played around a bit but realized "DataGridDragDropTarget" seems to be able to drag and drop single row at a time only. Is there any alternative w...

Drag a label from a view to a window in iphone?

I am trying to implement a feel like drag and drop of label in iphone.I am able to drag and drop inside a single view.But if i try to to drag the label from my view to another view added on the window, the label goes below the second view(added to window).But i want to drag the label over the second view(added to window).How can i achi...

Disable Drag & Drop of windows explorer using Delphi

Hi , How can i disable Drag & Drop item of Windows Explorer using Delphi APP ? I want to disable Drag & Drop that user can,t drag any file form Windows Explorer ... Regards, Silverboy . ...

Native Drag and Drop check for dropped item's id

I would like to check to see if an item with id === itemId is dropped on a droppable element, using native Drag and Drop. function dragDrop(itemId){ var droppable = document.querySelector('#droppableElement'); addEvent(droppable, 'drop', function(e){ if (e.preventDefault){ e.preventDefault(); ...

How to implement Drag and Drop items between two lists in android?

Hi, I am designing an application which requires Drag&Drop functionality to transfer items from one list to another. Is there any way to drop item into another list, as i have seen applications to drag and drop items in the same list(Reordering the list)? ...

How does one implement drag and drop for Android marker?

Hi? I am working on a MapView app in Android. I have three markers that I want to be able to use the Google Map API getlocation-function on, later on. In order to try it out I would like to move the marker with a drag and drop-function, and then check the location. Anyone who has gotten a drag and drop to work on an android marker, or ...

Flex 4 Enable Drag and Drop in List

Hello! I have a Spark List with a TileLayout. I want to enable moving itemRenderers around to be able to order items. How can I do that please? Thank you. ...

Can I use icons with RGBA transparency when using GTK+ drag and drop?

Hi, I am in the process of adding drag and drop support to an existing Mono/C#/GTK# application. I was wondering whether it was possible to use RGBA transparency on the icons that appear under the mouse pointer when I start dragging an object. So far, I realized the following: I can set the bitmap in question by calling the Gtk.Drag.S...

How do you make an element undragable in Raphael?

I made an element dragable using element.drag(start, move, up); When I want to make the element undragable, I can somewhat achieve this using the method from the documentation: element.undrag(f); // Any undefined variable works as the argument This makes it so that the element cannot be moved anymore. This method has 2 problems: ...

dataGridview with drag and drop but yet enable checkBox/combobox selection

I have a datagridview with drag and drop enabled but I have some columns which I want to let the user change their values (a checkbox and a combobox) any idea of how can this be solved? ...

WPF C# handling events while dragging an object

How can I handle a singular right mouse click event, while an object is being dragged? I've tried handling it with QueryContinueDrag event: void object_QueryContinueDrag(object sender, QueryContinueDragEventArgs e) { if (e.KeyStates == (DragDropKeyStates.LeftMouseButton | DragDropKeyStates.RightMouseButton)) //TODO however...

what is the best js drag and drop framework ?

i need to build diagram builder in js to be cross browser , what do you think will be the best light drag and drop frame work ? ...