drag-and-drop

Drag and Drop not working in C# Winforms Application

大兔子大兔子 提交于 2019-12-10 01:52:08
问题 I am trying to create a windows form onto which I can drop a file/folder. I have the following code in a WinForms app public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_DragEnter(object sender, DragEventArgs e) { Debug.Print("DragEnter"); } private void Form1_DragDrop(object sender, DragEventArgs e) { MessageBox.Show("Dropped!"); } } I have set the AllowDrop property to true. I've tried running the application in debug within Visual Studio. Based

Dragging and dropping to a TreeView, finding the index where to insert the dropped item

只谈情不闲聊 提交于 2019-12-09 20:19:39
问题 I have a WPF TreeView with one level of child items. I am using the HierarchicalDataTemplate for the top-level items, so the child items are bound to a backing data list. When I'm doing dragging and dropping I want to find out where in the target list the new items should go to. I have broken the scenarios down into the following cases: I am on on empty part of the target TreeView I am hovering on or near one of the top-level TreeViewItem s (dropped item must go to the back of the list) I am

How can I drag and drop Views within Android RelativeLayout

寵の児 提交于 2019-12-09 19:00:47
问题 I made my own drag and drop functionality. I wanted to do this with a RelativeLayout , but this seems not to work very well. At the beginning i can tell each View I want to drag on which position it should be by setting it below the View before. But when I want to drag a View, all the other Views beneath it are moved too, because they want to keep the order in which I set them. But what other layout can I use for this? I have to use this drag and drop functionality on different screen sizes,

FireFox onDrag Pagex PageY always zero ;(

梦想与她 提交于 2019-12-09 18:31:36
问题 Hi i'm implementing a visual editor where users are allowed to drag images onto the page, and drag other images inside these previously dragged images (kind of 'add another image'). I basically only need the mouse coordinates during the drag: the element hiliting etc... i do with custom functions based on these coordinates. The problem is, while on Webkit I can get them with event.clientX and event.clientY, under Firefox (v.16.0.1 OSX) their 'counterparts' pageX and pageY are always zero in

jquery draggable and mouseover

冷暖自知 提交于 2019-12-09 18:27:42
问题 I currently have some dropdown menus which open on mouse over. I'm implementing some drag-n-drop features using draggable and droppable from jquery ui. It seems that the mouseover events for the menus do not fire when dragging, is there a way to allow them to work? I've implemented it as follows (simplified): $('#some_id').draggable({ helper: 'clone', opacity: 0.35, zIndex: 20000, cursor: 'move' }); $('#some_menu').live('mouseenter click', function(){jThis.find('div').addClass('opened');});

Table Column Resizing/Drag 'n' Dropping in jQuery

允我心安 提交于 2019-12-09 18:23:41
问题 I'm looking for a way to implement both resizing and drag 'n' drop for columns (not rows) within a predefined table using jQuery. I've done a bit of Googling and haven't really found anything that fits the bill as many require you to essentially reconstruct your table using jQuery. I simply want to plug this functionality in, not have my entire table structure dictated by a third-party. Does anyone know of any plugins that might help me to do this, and if not are there any jQuery Gurus out

Drag and drop between two fragments

别说谁变了你拦得住时间么 提交于 2019-12-09 18:22:36
问题 I am working on drag and drop between two different fragments visible at same time on UI. I want to drag view from one fragment into the other fragment. I am able to drag it between the fragment but what i am facing not good is that i can't listen onDrag on second fragment for the view of first fragment. In Short the OnDragListener on second fragment should listen for the views dragged from first fragment. I have searched alot on google and stackoverflow. Didn't find any answer. Drag and Drop

Disable File drag & drop if there isn't a file input

只愿长相守 提交于 2019-12-09 18:13:30
问题 I think the solution to this is staring me in the face, but I can't seem to find it. So, I'm making a site that has a small file upload section. The upload section will have a place to upload an image for different devices and device orientations (i.e. iPhone, iPad, portrait and landscape). I can easily figure out how to implement the drag & drop on the individual device icons, but if the user misses the drop area, the browser will just navigate to that image on their system. How do I disable

How do you add drag-n-drop upload ability from Outlook to a Web form?

旧巷老猫 提交于 2019-12-09 18:05:59
问题 I am looking for a way to allow users to upload Outlook emails to a web-based system in a simple manner. I can get this to work in a manual fashion for the users. They can drag and drop the email from Outlook to their desktop, which creates a .msg file. This works very nicely, esp. if there are attachments in the email which are also stored in the .msg file. This file can then be uploaded using a traditional "input type=file" html field. I would like to simplify this process, if possible. I

NSCollectionView Drag and Dropping: Most Delegate Events Not Getting Called

不羁的心 提交于 2019-12-09 18:01:13
问题 I have an NSCollectionView bound to an NSArrayController. I want to get drag and drop working, so I create a delegate and implement the methods -(BOOL)collectionView:(NSCollectionView *)collectionView canDragItemsAtIndexes:(NSIndexSet *)indexes withEvent:(NSEvent*)event -(BOOL)collectionView:(NSCollectionView *)collectionView acceptDrop:(id < NSDraggingInfo >)draggingInfo index:(NSInteger)index dropOperation:(NSCollectionViewDropOperation)dropOperation -(NSDragOperation)collectionView: