drag-and-drop

Issue with drag and drop

一笑奈何 提交于 2019-12-13 11:05:25
问题 I use the following code to drag and drop a file into a c# winforms application. The issue I have is that the DragDrop event handler takes a while, and during this time I can't use the window from which I dragged the file. How can this be fixed? private void FormMain_DragDrop(object sender, DragEventArgs e) { string[] s = (string[])e.Data.GetData(DataFormats.FileDrop, false); // do some long operation } private void FormMain_DragEnter(object sender, DragEventArgs e) { if (e.Data

Is there a drag and drop component in android UI [closed]

本秂侑毒 提交于 2019-12-13 10:08:22
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . Is there a drag and drop component in android UI ? 回答1: I think that you have to take a look to the official android developer site at: Drag and Drop 回答2: It depends on the API level, an official Drag and Drop

I am facing issue in drag and drop in html5 with selenium java

隐身守侯 提交于 2019-12-13 09:47:58
问题 I am newbie to java and selenium. i am facing issue in dragAndDrop in HTML5. can you please help me? Code i am using is : public static void draganddrop(WebDriver driver ,WebElement Source, WebElement Destination) { Actions action = new Actions(driver); action.dragAndDrop(Source, Destination).build().perform(); } <li data-ng-repeat="item in questionType" id="divDrag0" class="ng-scope"> <!-- ngIf: !isSurveyStarted || (isSurveyStarted && !isSurveyLock) --> <a data-ng-if="!isSurveyStarted ||

Drag Drop ListBoxItems from ListBox1 to ListBox2 with their images and avoiding duplication Delphi

烈酒焚心 提交于 2019-12-13 09:13:24
问题 My code is working and the drag and drop but what i want to add is to Drag and Drop items from ListBox1 to ListBox2 with their images. Also when i want to rearrange the items in ListBox2 it duplicates without deleting the previous one. Or if it's possible I would love to know how to move items from ListBox1 to ListBox2 with just a double Click no need to the drag and drop. I am using the 10.2 version Here is my code and i would appreciate if anyone can help me : type TListBoxItem = class(FMX

Drag and Drop from localstorage HTML5 not working

亡梦爱人 提交于 2019-12-13 08:30:27
问题 I have created a web page with drag and drop features for some of the elements. Once the drag and drop are done, I store the elements which are in the droppable area in the local storage of the browser. Later when the page is accessed again, I take the values from local storage and restore them on the web page. After I restore, I couldn't drag the elements in the droppable area within its containment. Could anyone please help? Below is the code I have used. Here is the link to FIDDLE HTML ×

Detecting drop into textarea with Javascript

落花浮王杯 提交于 2019-12-13 08:24:14
问题 All I need is to be able to detect when text is dropped into a Textarea. I then take that text and do stuff with it and clear the textarea. There may be many of these textareas and very high UI expectations, so polling is a last resort. For IE, "onfocus" does the trick, since this event is fired after the user drops stuff into the textarea. For Firefox, I can't find an event that works. I've tried onmouseup and onchange.. don't know what else to try from there. I'd hate to have to poll the

Error when trying to execute drag and drop using javascript for Selenium WebDriver test

六月ゝ 毕业季﹏ 提交于 2019-12-13 07:49:38
问题 I have tried to simulate drag and drop for Selenium WebDriver test using the following JavaScript call, but I get a WebDriver error. I tried this way, as with Actions class didn't work on any browser (Firefox, Chrome). Can someone tell what I am doing wrong? String filePath = "C://Work//Spica import files//drag_and_drop_helper.js"; String source = "li[draggable='true']"; String target = "#fieldCc"; StringBuffer buffer = new StringBuffer(); String line; BufferedReader br = null; try { br = new

Add Event Listener on new element does not work?

自闭症网瘾萝莉.ら 提交于 2019-12-13 07:32:07
问题 I added addEventListener click, drop, dragover on new child created div element. On the new created div element the click works, but the drop and the dragover do not work. How can every new child-div get drop-drag-div? I can not figure out where I made a mistake. Is there any solution? add Event Listener ('click') - work, add Event Listener ('drop') - do not work, add Event Listener ('dragover') - do not work. <style> #divs{ width: 450px; height: 70px; margin: 10px; padding: 10px; background

Adjusting zindex with createjs

孤街浪徒 提交于 2019-12-13 07:17:08
问题 I would like to move the dragged item to the top layer when its moved. How can I make sure it does not get dragged under another object. Can I set what ever "sequenceNumbers" that is selected to move to the top of the sorting order? //++++++++ Terms to sort ++++++++++++++++ var xOffset = 100; for (var a = 0; a < gameData.Terms.length; a++) { rect = new createjs.Shape(); rect.graphics.beginFill("blue").drawRoundRect(0, 0, 350, 30, 8); rect.name = a; var name = new createjs.Text(gameData.Terms

JavaScript drag and drop - how to get data-id with getAttribute , when dropped an image

倾然丶 夕夏残阳落幕 提交于 2019-12-13 07:15:42
问题 I am doing to drag and drop the image in javascript.I gave some attributes in image.I am calling the attributes ("data-id") on the name. <img class="item" id="Img1" src="http://dummyimage.com/100x100/000/fff&text=Halil" draggable="true" ondragstart="drag(event)" alt="" data-id="10" /> <img class="item" id="Img2" src="http://dummyimage.com/100x100/000/fff&text=Figen" draggable="true" ondragstart="drag(event)" alt="" data-id="20" /> <img class="item" id="Img3" src="http://dummyimage.com/100x100