drag-and-drop

How to get ListViewItem under MouseCursor while dragging sth. over it

Hi SO-followers, I'm implementing drag & drop on a ListView. I already managed to get the ListViewItem under the cursor when dropping on it but I would like to get the ListViewItem under the mouse cursor while I'm dragging sth. over the ListView-Control. I would like to select the ListViewItem (selected=true) like in Windows Explorer w...

Drag and drop .app files into NSImageView and get the file path.

Hi, I have an NSWindow containing and NSImageView. I want that the user can drag 'n drop a .app file (application) into the NSImageView, and my application see which file is dropped. Is there a way to do this (okay, I'm sure there is a way to do this -_- but which one :p )? So much like iWeb does it with image files. A tutorial would ...

disable text drag and drop

There is a common feature of modern browsers where a user can select some text and drag it to an input field. Within the same field it causes moving of text, between different fields it does copying. How do I disable that? If there is no portable way, I am mostly interested in firefox. This is an intranet webapp, so I am also interested ...

Why I cannot drop files from explorer to FlowDocumentReader and how to fix it?

I'm trying to implement a piece of functionality that will let the user to drag files into an application to be opened in the FlowDocumentReader. My problem is that is though I have AllowDrop=true on the FlowDocumentReader, the cursor does not change to the "drop here" icon but changes instead to "drop is not allowed" icon. This happens...

Need a WPF rendering tip

Hey guys. I want to make a WPF Grid in which users can drag and drop controls from one cell to another and when the user is dragging I need to draw tips on the screen, like arrows. It's as if the tips were in ANOTHER LAYER in the screen. That is, they are not drawn IN the grid I mentioned. The problem is: I don't know how to OVERLAP a...

WPF Sidebar style drag and drop

I'm trying to write a WPF control that has similar functionality to the Windows Sidebar. The functionaly I would like to replicate is the drag and drop ordering. When dragging an item the other items move out of the way to show you where the item will end up when dropped. Has anyone else had to implement this sort of functionality, if ...

Drag and Drop Table Rows Using Javascript

I'm wondering if there is a good library or script out there that trivializes drag and drop functionality for table rows in Javascript? Really the only requirement I have is that rows must be draggable within the table itself, but also to other tables on the page. I'm not too familiar with JQuery or Javascript itself, so I'd like to try ...

WPF - Drag & Drop on Listbox ITEM

I want to drop something not on the whole ListBox, but on a specific ListBoxItem. I'm handling the ListBox' Drop event - how can I find out, on which item the mouse is pointing? ...

WPF: Can't drop dragged data onto an ItemsControl

I have the following XAML: <DockPanel x:Name="OverViewContainer" AllowDrop="True"> <StackPanel Orientation="Horizontal" DockPanel.Dock="Bottom" HorizontalAlignment="Right"> <uicommon:Toolbar DataContext="{Binding Commands}" /> </StackPanel> <ItemsControl ItemsSource="{Binding DocumentE...

How to access Drag-EventHandler from external class

Hi! I have a UserControl that contains another UserControl. Like this: <HeaderedContentControl Grid.Row="2" Header="New A" DataContext="{Binding NewA}" Template="{StaticResource NewAResource}"> The outer UserControl has elements which I can drag. The embedded UserControl has a TextBox to which I want those elements to be ...

dojo.dnd one item at a time only

Hi, Using dojo.dnd, I want to allow a user to drag only one item at a time, rather than any arbitrary number, as per the dojo's default behaviour. At the moment, a user can hold Ctrl and click multiple draggable items at a time, then drag them all as a group. I want to disable this so that the user can only drag one item at any given ...

MS Surface drag & drop SurfaceListBoxItems

Hey guys I'm working on the Microsoft Surface Table and I'm attempting to drag an item from 1 SurfaceListBox to another and recognize which SurfaceListBoxItem the other SurfaceListBoxItem was dropped on top of. The SDK help as a great tutorial for dragging items from 1 SurfaceListBox to the next and just adding the content and removing ...

Various browsers / Drag & drop between favourites bar & edit boxes

Briefly, all of the up-to-date versions of the three browsers that I use day-to-day, namely Chrome, Firefox and IE, make it possible to drag links to the favourites bar. What I really want is to be able to show job seekers that they can drag RSS feeds for job searches from any of a number of big job boards such as Monster.com to the sub...

Is it possible to drag and drop files from local file system into a Flex application?

Hello, I would like to know if it is possible to create a Flex application accepting the drop of local files? The aim is to only retrieve the full path/name of the file in the local file system. Google results are mainly about dragging and dropping items inside a flex application. Thank you in advance. ...

Drag and Drop in MobileSafari?

Is it possible to allow users to drag and drop items in mobile safari? Google images on the iPhone does something similar, but I'm not sure if it is true drag and drop or some other work around. Anyone have any insights? ...

Trouble with detecting mouse movements in a TcxGrid when dragging files from Windows Explorer

I recently added a feature to a large application written in Delphi (version 2009) that allows the user to drag files from Windows explorer and drop them on a TcxGrid control. I achieved this via the common method of attaching my own window proc to the grid and intercepting the WM_DROPFILES message: originalGridWindowProc := cxGrid.Win...

How could I Drag and Drop DataGridView Rows under each other ?

Hi I've DataGridView that bound a List<myClass> and i sort it by "Priority" property in "myClass". So I want to drag an "DataGridViewRow" to certain position to change it's "Priority" property. How could I "Drag & Drop" DataGridView Rows ?. And how to handle this ?. ...

Drag Drop using scriptaculous

Hi, I am using scriptaculous drag drop in my project. While dragging i have to clone the element which is draggable and i want to drop only the element which is cloned, but not the original draggable element, into one cart. I tried with ghosting. But wat happens is, draggable element has been cloned for dragging, leaving the origin...

Detecting Drop Event in Input (Text) using Javascript

Hi all, Atleast defining my problem is simple... I have a Input control (Text) and a javascript function, which truncates the Text in the input control to 15 characters. ie if the length exceeds the limit, left(text,15) is set back to the control. This is handled through onkeyup event... Now, when user drag and drops the text direc...

Dojo DnD: how to access newly copied node on onDndDrop event?

Hi. I am working on code like the following. 01: var c1 = new dojo.dnd.Source('container1', {copyOnly:true}); // container1 is a div 02: var c2 = new dojo.dnd.Source('container2'); // container2 is a div 03: var list = []; 04: for (var i = 0; i < 3; i++) { list.push( dojo.create('div') ); } 05: c1.insertNodes(false, li...