drag-and-drop

Jquery drag drop on html canvas

こ雲淡風輕ζ 提交于 2019-12-23 01:30:14
问题 Hello I am trying to drag itms from a div ( li items) onto a html canvas. I have an issue with helper clone. When i simply drag items without helper, it drop itms onto canvas, but when i use helper clone it does not drop items onto canvas. I have attached a fiddle please check it. HTML <ul id="drag"> <li class="new-item">Drag me down1</li> <li class="new-item">Drag me down2</li> <li class="new-item">Drag me down3</li> </ul> <canvas id="myCanvas" width="200" height="200" style="border:1px

jQuery UI add Tabs with Drag e Drop

放肆的年华 提交于 2019-12-22 19:20:31
问题 I have a set of JQuery UI tabs into which I would like drag from predetermined set of options to add new tabs. Here is what I have so far: http://jsfiddle.net/MrThursday/z8xZ3/ I initialise the tabs in the standard way and am wondering if there is an easy way to make the tabs behave like the sortable plugin for simple drag and drop operations? var tabs = $("#tabs").tabs(); tabs.find(".ui-tabs-nav").sortable({ axis: "x", stop: function () { tabs.tabs("refresh"); } }); As you can see I am able

wx.TreeCtrl drag and drop, copy and move

∥☆過路亽.° 提交于 2019-12-22 18:20:09
问题 I'm trying to implement drag and drop on a wx.TreeCtrl and I need to handle both "copy" and "move" operations (if the user keeps CTRL pressed). First of all, I searched the wiki for an example and I'm confused as to which method to use.. Should I use DropSource/DropTarget or just handle EVT_TREE_BEGIN_DRAG and EVT_TREE_END_DRAG? If the latter, how can I tell if the user is requesting a "move" operation? (wxPython 2.8.9.1 on Ubuntu Jaunty) 回答1: Reading the relevant paragraph from Cross

Image dragging and dropping

半城伤御伤魂 提交于 2019-12-22 17:49:21
问题 I have started the previous question, but I want to change the method of dragging. So the task is, the user (kid) learns how to do addition. So there's 2 candies, and 1 candy jar. The user requires to drag and drop the candy to the jar. How to do it? These is the code I have: Main xml <?xml version="1.0" encoding="utf-8"?> <AbsoluteLayout android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id

Rearrange CustomControl inside wrappanel in wpf c#

旧城冷巷雨未停 提交于 2019-12-22 17:48:44
问题 I am creating a customcontrol dynamically inside a wrappanel. Now i need the reorder the custom controls which are inside the wrappanel. Is it possible to rearrange the custom controls inside the wrappanel using drag and drop? Here is my XAML code <DockPanel Grid.Column="1" Margin="208,40,1,94" Grid.Row="2" Background="White" AllowDrop="True"> <ScrollViewer AllowDrop="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden" Width="443"> <StackPanel Width="443" >

How to do Drag and Drop in WPF between two lists?

主宰稳场 提交于 2019-12-22 17:40:13
问题 I'm having a hard time solving an issue of mine, I'm literally going mad. Here's the idea: I have two ListView elements, and I need to open a dialogue when an element drops from the first list onto the second, but I need both the information from the element being dropped and the element being added to fill in the dialogue. The thing is, I can't even get the basic functionality right - and that is opening the dialogue on drop. I'm going to learn the D&D technique from start to finish, but I

Can we drop a file in windows explorer from WPF window?

旧巷老猫 提交于 2019-12-22 15:36:09
问题 I have a treeview that shows the current file system. I want to add functionality to enable dropping files into windows explorer. If I drag any of the node of my treeview and drop it on any of the window of Windows explorer then the file will be copied to that location. How can I accomplish this? 回答1: First read this about how to implement drag and drop in WPF. The read this for some information about what explorer expects when you drop in it. Then ask new questions if you still have any. 来源:

Javascript drag and drop multiple instances of the same object

跟風遠走 提交于 2019-12-22 14:48:07
问题 I want to develop a javascript drag and drop application just like the one you can see here , where you can pick and object and drag it to another area. But i want to do this with a twist. I want to be able do drag the same object multiple time, instead of moving the object from the book shelf to the basket, i want to drag one instance of the object to the book shelf and still have the object on the book shelf. It's like buying multiple instances of the same object, each time i drag the

Enhancing a Jquery drag-and-drop demo

走远了吗. 提交于 2019-12-22 14:38:22
问题 I have a requirement that very closely matches this Jquery demo, which is a simple shopping cart demo. Basically I need to make two enhancements into this demo. I need a text input alongwith with the available "products". So when I drag-drop one of the products, the text fields should be dragged along with that, which will be filled by user in the "cart" field. I need a "cross" in front of each item in cart, which can be used to delete a certain item. Jquery's "destroy" function doesn't seem

Python TkinterTreectrl drag items

谁说胖子不能爱 提交于 2019-12-22 13:56:08
问题 I am writing a program in Python to allow me to browse through the experimental data I have taken, and also view metadata associated with the experimental conditions for each dataset. At the heart of this program is the TkinterTreectrl widget, a wrapper for tk treectrl Despite being rather a novice programmer, so far everything is working well - I can add items, remove items, select them etc etc. However, I cannot work out how to allow the dragging of items to new locations in the tree. I