drag-and-drop

Simple drag and drop code

拜拜、爱过 提交于 2020-01-22 09:30:10
问题 Im struggling with seemingly a simple javascript exercise, writing a vanilla drag and drop. I think Im making a mistake with my 'addeventlisteners', here is the code: var ele = document.getElementsByClassName ("target")[0]; var stateMouseDown = false; //ele.onmousedown = eleMouseDown; ele.addEventListener ("onmousedown" , eleMouseDown , false); function eleMouseDown () { stateMouseDown = true; document.addEventListener ("onmousemove" , eleMouseMove , false); } function eleMouseMove (ev) { do

Reorder / move / dragdrop ListViewItems within the same ListView Control in C# Windows Forms

坚强是说给别人听的谎言 提交于 2020-01-21 09:00:06
问题 I have a ListView in LargeIcon View in C# 2008 System Windows Forms . Now I would like to move an item of this ListView within the same ListView on another position - let's call it "drag-and-drop" or an "item reorder" or whatever. VB 6 is capable of this and does this automatically in any listView. C# seems not to have this feature or it needed to be coded first. For coding this I have no experience and I have found no answer in my research in the internet. I found only an "override procedure

Reorder / move / dragdrop ListViewItems within the same ListView Control in C# Windows Forms

我们两清 提交于 2020-01-21 08:59:05
问题 I have a ListView in LargeIcon View in C# 2008 System Windows Forms . Now I would like to move an item of this ListView within the same ListView on another position - let's call it "drag-and-drop" or an "item reorder" or whatever. VB 6 is capable of this and does this automatically in any listView. C# seems not to have this feature or it needed to be coded first. For coding this I have no experience and I have found no answer in my research in the internet. I found only an "override procedure

Visual Studio does not let me drag drop items into it?

故事扮演 提交于 2020-01-18 16:00:47
问题 Using Visual studio 2010 I got problems when double-clicking, for example a config file (*.config). Visual Studio would open but give me a error message about parameters. If I simple try to drag and drop a file that Visual Studio usually can read in to it, the icon will give me the "not possible icon"? I have now installed Visual Studio 2012 and it has the same problem?! This makes my work a lot harder, it should be easy to just drag & drop files into Visual Studio, but it's not so? Now I

Visual Studio does not let me drag drop items into it?

风流意气都作罢 提交于 2020-01-18 16:00:26
问题 Using Visual studio 2010 I got problems when double-clicking, for example a config file (*.config). Visual Studio would open but give me a error message about parameters. If I simple try to drag and drop a file that Visual Studio usually can read in to it, the icon will give me the "not possible icon"? I have now installed Visual Studio 2012 and it has the same problem?! This makes my work a lot harder, it should be easy to just drag & drop files into Visual Studio, but it's not so? Now I

NSOutlineView with Drag and Drop

心不动则不痛 提交于 2020-01-17 03:22:26
问题 I read the other post here on Outlineviews and DND, but I can't get my program to work. At the bottom of this post is a link to a zip of my project. Its very basic with only an outlineview and button. I want it to receive text files being dropped on it, but something is wrong with my code or connections. I tried following Apple's example code of their NSOutline Drag and Drop, but I'm missing something. 1 difference is my program is a document based program and their example isn't. I set the

SVG <g> element dragging causes flickering issue using d3

两盒软妹~` 提交于 2020-01-16 19:46:46
问题 I have been trying to use d3 library for drag n drop of dvg element by using transform translate. I am able to drag an element but it flickers while dragging. I have been searching and doing trial and error so far from below links but it doesn't help me. "Stuttering" drag when using d3.behavior.drag() and transform D3.js: Dragging everything in group ('g') by element contained in the group using origin() function How to drag an svg group using d3.js drag behavior? For the last link, I think I

Xamarin Forms: How to implement Drag and Drop Flowlistview Label in Xamarin Forms?

家住魔仙堡 提交于 2020-01-16 19:37:08
问题 I am trying to implement a fill in the blanks game on my project. I am using flowlistviews for showing items on UI. I have 2 flowlistviews aligned vertically on my project. The top flowlistview shows the questions and bottom flowlistview has its answers. I need to drag the answer from the bottom listview and drop it on the top list view. Also instead of {{2fill}} I need a blank space (underscore) on UI where the answer from bottom listview is dropping. Screenshot I have uploaded a video here,

Multiple drop events in HTML5

和自甴很熟 提交于 2020-01-16 18:15:06
问题 I'm trying to create a drag and drop feature in HTML5 where I can drag from one list to another. I have one list with draggable items and another list with items that have drop events added. The problem is, regardless of what element I drop onto, the last drop event that was added is the one that gets called. Thanks for any help or suggestions. I've included my code below: <!DOCTYPE html> <head> <title>List Conversion Test</title> <style type="text/css"> #list, #cart { display: inline; float:

keep new image when drawing lines by dragging the mouse in matlab

无人久伴 提交于 2020-01-16 17:31:38
问题 I am new in matlab GUI. I want to drawing lines by dragging the mouse. I found this issue but I want save new image with drawn lines. If i run this line, it will show me the same image. imshow(im); How can I get new image with drawn lines and for example show it? 回答1: You can also grab the image data directly in the Command Prompt. Once you draw all of your lines on your figure window, you can use getframe , which takes a snapshot of the current frame in focus. In this case, this should be