drag-and-drop

vb.net Using the drag and drop operation using images

馋奶兔 提交于 2019-12-12 02:19:58
问题 I'm currently trying to simplify a tool that we use at work. For this I would like to use the drag and drop method. The tool is basically like building a tower using three different kind of blocks. At the top there are the three images of the different blocks below is a flow-layout-panel. The goal is to drag in a desired order the blocks into the flow-layout-panel. Here is a quick image that would represent the start position. (Just to be clear.) This for me is the tricky part. I only used

What is the data type in HTML 5 if i need to drag and drop a div to another div?

核能气质少年 提交于 2019-12-12 02:16:40
问题 in the JS function below, the data type is set as "text" but this doesn't work because i'm looking at dragging and dropping a div. Is there any way around this? or a data type ? function drag(ev) { ev.dataTransfer.setData('Text', ev.target.id); } Thanks so much. 回答1: Mozilla recommend application/x-moz-node for dragging nodes within the document, though that is obviously only going to work in Gecko based browsers. It's easier and generally more compatible to set a reference to the element as

Drag two images and drop them in two different JButtons in the same JFrame

孤街醉人 提交于 2019-12-12 02:13:02
问题 I have a code in which I must drag two images from my desktop and drop it on a frame in two draggable buttons. The buttons have already been made on the frame. But while dragging the images, they can only be dragged to one button. The images don't get dragged to the other one. I have made a DragListener class where the dragging methods prevail and the main class DragInitialListener where I have passed objects of class DragButton so that two draggable buttons are created. I have tried

jQueryUI - auto scroll goes double distance when dragging

只愿长相守 提交于 2019-12-12 02:08:29
问题 I've distilled the problem into the shortest page which exhibits the problem (apologies for inline style). If you scroll down and drag the 'drag me' title, look how the dragged element zooms away from the cursor. It seems to be moving double the distance (relative to the document) than it needs to. I have reproduced the problem in IE8, FF3.5 and Chrome. On WinXP and Ubuntu. Am I doing something stupid in my code, or have I encountered a bug? Thanks, Chris. <!DOCTYPE html> <html> <head>

Regarding NSoutlineView and WriteItem | Drag-and-Drop Problem

自作多情 提交于 2019-12-12 02:06:10
问题 To handle Drag-n-Drop have done following, -(void)InitMyOutlineView{ - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - -- -- - - - - - - - - [pMyOutlineView registerForDraggedTypes: [NSArray arrayWithObject:NSStringPboardType]]; /* I tried both Yes and No */ [pMyOutlineView setDraggingSourceOperationMask:NSDragOperationEvery forLocal:NO]; - - - - -- - - - - - -- - - - - - - -- - - - - - - -- -- - - - - -- - - - - - - - - - - - -- - - - } The WriteItem method as below, -

Custom “pinch to zoom” edittext cant be edited

…衆ロ難τιáo~ 提交于 2019-12-12 02:00:00
问题 My goal is to create a pinch to zoom edittext. After some googling, someone kind enough to share this class on github: public ZoomEditTextView(Context context, AttributeSet attrs) { super(context, attrs, 0); this.mContext = context; init(); } public ZoomEditTextView(Context context) { super(context, null, 0); this.mContext = context; init(); setFocusable(true); requestFocus(); /*@formatter:off this.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent

How do i create a drag and drop start event in REPORT listview in winapi

爷,独闯天下 提交于 2019-12-12 01:44:56
问题 I've stumbled into a problem with drag and drop. I've got a REPORT style of my list view. First thing to think of is catching the LVN_BEGINDRAG message, but I was unable to catch it in the parent window procedure. I went to MSDN and figured out that REPORT style doesn't support this notification because other styles had some mentioning of d'n'd in their description and report style didn't have one. So I went the other path - handling NM_CLICK notification, but actually it's not perfect for

Protractor dragAndDrop not working

与世无争的帅哥 提交于 2019-12-12 01:39:34
问题 I have tried all possible ways for drag and dropping the elements available in the below link, https://the-internet.herokuapp.com/drag_and_drop But i am unable to achieve drag and drop the elements between two boxes. Methods i tried so for 1.browser.actions().mouseMove(a).mouseDown().mouseMove(b).mouseUp().perform() 2.browser.actions().dragAndDrop(a,b).perform() 3.browser.driver.actions().dragAndDrop(a,{x:1000,y:0}).perform(); All the above methods are not working. Can some one figure out the

How to drag Multi items between 2 listbox in C#?

為{幸葍}努か 提交于 2019-12-12 01:27:47
问题 I can drag one item from listbox1 and drop it to listbox2 but how can i do it when i select multi items from listbox1? private void FrmCh3_Load(object sender, EventArgs e) { listBox2.AllowDrop = true; } private void listBox1_MouseDown(object sender, MouseEventArgs e) { listBox1.DoDragDrop(listBox1.SelectedItem, DragDropEffects.Copy); } private void listBox2_DragEnter(object sender, DragEventArgs e) { e.Effect = DragDropEffects.Copy; } private void listBox2_DragDrop(object sender,

JQuery Draggable Multiple Items with the same id not working

不羁岁月 提交于 2019-12-12 01:22:57
问题 Do you need to give each draggable element a different name? I have 3 images I want to be able to drag them around. I tried to give them all the same id but it fails. I will have a variable number of images so I need them all to have the same id. What is going wrong here? Here is my code: <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>jQuery UI Draggable - Default functionality</title> <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui