drag-and-drop

UITableView: Drag a row onto another one

I have a UITableView that represents a list of objects, I'd like the user to touch an object, drag it onto another one (as to combine them) and seeing the two disappearing and a new one appearing. I guess that I can't do this with the standard table view editing methods (a row cannot be dragged onto another one, am I right?). Shall I wri...

HTML5 Drag and Drop API on Touch Screen Devices

I was just wondering if the HTML5 API for Drag and Drop included support for touch screen displays. I was thinking of iPhone, but I know this isn't supported yet. I was wondering if that is just catching up on the part of Apple, to support HTML5 drag and drop on Safari mobile, but I also was thinking maybe the HTML5 API wasn't powerful...

Drag from Tree to div

Hi, I am trying to implement a drag and drop senario from an extJs TreePanel into a div in the body of the page. I have been following an example by Saki here. So far I have the below code: var contentAreas = new Array(); var tree = new Ext.tree.TreePanel({ title : 'Widgets', useArrows: true, ...

How to get the target of a Drag Drop operation on a TreeViewDragDropTarget in Silverlight?

I've looked at the Drop and ItemDroppedOn Target event handlers but it appears that you can only access the source. The sender is the TreeViewDragDropTarget when I actually want to see the item in the TreeView that is being dropped on. ...

How to deal with TcxCustomGrid-TcxCustomGrid Drag and Drop when I drag an object to the outside of the window?

I have a TcxGridDBTableView in a window, and dragmode is set to dmAutomatic. When I drag and drop a row above another, it works fine. But when i drag and drop a row to the outside of the window, I'm not getting to the TcxGridDBTableView's 'OnEndDrag' event. Ex.: procedure TfrmMyForm.cxGridDBTableViewEndDrag(Sender, Target: TObject; X,...

Drag and Drop in two lists

Hi, I have two sortable lists and everything works fine unless one of the columns is empty. For example if the left list is empty and the user tries to drag an item from the right list and drop it into the left list, the drop can not happen. It just returns back to it's spot in the right list. If both right and left has items then ...

Drag Drop from .NET application to Explorer

I'm looking to provide users with ability to drag&drop files from grids and other controls in my application into Explorer. Any good samples/articles for that? ...

How do I stop Wordpress dashboard widgets from being dragged?

I'm setting up Wordpress 3.0.1 for a novice user. The Dashboard widgets are appropriately placed, and I'd like them to stay that way. As far as I know, there's no add_filter or add_action hook to prevent dragging, so another approach would be to make a plugin that uses jQuery to disable dragging. What handler(s) would I override -- click...

Is there a way to support DND between a standard eclipse instance and an RCP?

We ship an eclipse RCP with a main view that contains a structured viewer. I define a DropTarget on the viewer that seems to work fine (supports File, Plugin and Resource Transfer Types). The only problem is, when I use this with our other product, an IDE based on the full eclipse platform, I can't get the resource from my selection in...

Setting start position for a custom extended View element

Hi everyone, I need to implement drag & drop for my View. That works nicely but i need to set starting position for my View based on layout parameters. Here's the code: RelativeLayout lay=(RelativeLayout)findViewById(R.id.low_and_high_layout); android.widget.RelativeLayout.LayoutParams params=new RelativeLayout.LayoutP...

Get NSTableView to register drop from PNG source

Trying to get this to work, and not sure what I'm missing. The idea is to drop images on a NSTableView so that I can grab their paths and do some manipulations for them. I can get the drop to work for NSPastebouardTypeString, but I cannot for the life of me get it to register dragging PNGs from Finder into the tableview. What am I missin...

Dragging text around in an iPhone app

Hey all, First time posting, so thanks for any help - great site here! I'm new to iPhone programming and am wondering how best to approach this problem: I have a background image and I'd like to place text on the image and let the user drag the text around on the image. Nothing fancy, really, but I'm not sure I am approaching it right ...

How to detect file drag on HTML page

I can detect if a file is being dragged on a div by listening to 'dragover' event. But how can I detect if a file is being dragged over the whole HTML page? document.body does not seem to raise the 'dragover' event. What I intend to do is as soon as a file is dragged over a page, I'll show a hidden div to drop the file on. Just like Gma...

c# controlling datagridview columns drag and drop operation

Hi I have a datagridview table and I want to disable drag and drop in some specific situations. Example: I have 4 columns named A,B,C,D. I divide them in to 2 groups: A,B and C,D (for a user they look like 4 normal columns). Now when the user drags a column A or B, he can only drop it before C. When he drags C or D, he can only drop ...

NSOutlineView: Hot To Avoid Yellow Border When Dragging Items?

Hey experts, When I drag rows from an NSTableView to another NSOutlineView, the NSOutlineView gets a yellow highlighting border. How do I avoid that? To be precise, this happens only if I drag the rows from the table into the free space (i.e. not on any items) of the NSTableView. However, when I drag the rows directly on items in the N...

I used the example gave by microsoft to drag and drop an object from a ScatteredView to a Surface List Box but it is not working

Hi, I developped the example given by Microsoft to drag and drop and object from a scatterview to a surface list box. The scatterview is working, I can move the objects on it. But when I try to drag and drop them on the Surface ListBox nothing happen. I posed a breakpoint on the method OnDragSourcePreviewContactDown but it doesn't ent...

drag and drop from datagrid to uicomponent in Flex

Hi, I'm trying to drag an item from a datagrid and drop it onto a UIComponet. Basically I just want the UIComponent to know that something has been dropped onto it and allow it to access the data of the dropped item. I thought just listening for the drop event would do it but it seems not. I found lots of documentation on dragging fro...

Multiple drag and drop in PyQt4

Hi, i can't find an example on dragging (and dropping) multiple elements with Qt/PyQt; In my case i need to drag elements from this QTableView: class DragTable(QTableView): def __init__(self, parent = None): super(DragTable, self).__init__(parent) self.setDragEnabled(True) def dragEnterEvent(self, event): ...

Image gallery in UNITY3D

Is it possible to create an Image gallery similar to this : http://www.west-wind.com/rick/photoalbum/demoMaui2006/Default.aspx?Admin=true using Unity3d. I know it is possible to click, drag images and save them using jQuery. But is there a way to create images dynamically in Unity3d and then load, move, drag and save them? If that sound...

Drag and Drop Element Into Textbox

In the latest project I'm undertaking, I need to be able to drag a div element from a list and drop it into a textbox. The project itself has a strong messaging component and I'd like to have the functionality to drag contacts from a contact list and place them in a "recipient" textbox containing one or more recipients, comma delimited. ...