drag-and-drop

Java drag and drop custom cursor

筅森魡賤 提交于 2019-12-08 00:37:18
问题 I have defined a custom canvas style component, using JPanel, that will support the dragging of objects onto the canvas. What I can't seem to figure out is how to change the drag and drop (DnD) cursor to a custom one, using a TransferHandler. For example, instead of the default link cursor during DnD, I want substitute my own. Is there a way to do this using a TransferHandler? I suspect I will have to use the AWT DnD support to do this but I am hoping to avoid that if I can. 回答1: By digging

Drag n Drop not working proper on scaling the container

馋奶兔 提交于 2019-12-07 23:56:22
问题 When I zoom the container to 0.5 then the DND does not behave properly. Please anyone help me solve the issue. HTML: <div id="container"> <div id="dragContainer"> <div class="draggable">drag1</div> <div class="draggable">drag2</div> </div> <div id="dropContainer"> <div class="droppable">drop1</div> <div class="droppable">drop2</div> </div> </div> JS: $(".draggable").draggable({ revert: 'invalid' }) $(".droppable").droppable() I have created fiddle link of the issue: https://jsfiddle.net

Drag and drop desktop to browser HTML5 Javascript [duplicate]

余生长醉 提交于 2019-12-07 23:48:34
问题 This question already has answers here : How to drag and drop file attachment into the browser? (6 answers) Closed 5 years ago . Looking for some guidance, still a code learner and having a bit of a struggle using the HTML5 DnD/File Api... Played around with a few of the demos to try and understand how they work and I'm having a bit of an issue. Most seem to use an inline css/js method I am trying to use them in separate files but can't seem to get it right. Could someone do a very quick demo

How do I get IDropTarget to work with my Drop Handler in Delphi?

删除回忆录丶 提交于 2019-12-07 21:03:10
问题 I have associated a file extension with my Delphi 2009 program. I have been using the command line call method to pass the filename to my Delphi program so it can be opened. However, I found that when selecting multiple files, and clicking on them all at once, it opens each file in a separate instance of my program. I asked about this, and apparently the solution is to use one of the other two Windows methods: DDE or IDropTarget. But DDE is being deprecated, and MSDN recommends the

How to prevent an item being dropped into one TileList from another using Flex?

孤者浪人 提交于 2019-12-07 20:41:45
问题 I would like to prevent a user dragging certain items from one TileList to another. Whether or not they can be dropped into the TileList should be determined based on data associated with the item. To show that the item cannot be dragged into the TileList I would like to show the normal white cross in red circle icon next to the cursor. If a drop is attempted when it has been determined that drop should not occur I would like to show an alert message explaining why this item could not be

Flash AS3 custome Dragging using MOUSE_MOVE event

我的梦境 提交于 2019-12-07 19:44:34
问题 I am creating grid based map renderer in AS3 which loads required chunks of PNG images and render them in a container. I've applied scrolling/dragging logic in this app using MOUSE_MOVE event handler. What I do is, I register bDragging flag in MOUSE_DOWN and position of mouse, In every MOUSE_MOVE, I check displacement of mouse and move main map accordingly Unregister bDragging flag in MOUSE_UP and set position to NaN. My problem is dragging is quite jerky/shaky. Any suggestion would be

Drag and drop divs across page?

吃可爱长大的小学妹 提交于 2019-12-07 19:23:16
问题 I'm building a single page which consists of a list (of div's) on the left and a grid (of div's) on the right. I would like to add the ability for a user to click and drag one of the list items and drop it over one of the grid boxes. I'm not using HTML5, but I know it comes with this native capability. I'm trying to avoid HTML 5 at the moment. The above illustration shows my basic page layout and the red line shows how things will be dragged/dropped. Any of the list items may be dragged into

Drag and drop from javaFX scene to windows explorer

跟風遠走 提交于 2019-12-07 18:33:55
问题 Is there any way to Drag and drop from javaFX scene to windows explorer? 回答1: Yes there is You should use the onDragDetected function to start your dragEvent and the onDragDone function for doing whatever you want after finishing the drag & drop. Here an example: final Text source = new Text(50, 100, "DRAG ME"); source.setOnDragDetected(new EventHandler <MouseEvent>() { public void handle(MouseEvent event) { /* drag was detected, start drag-and-drop gesture*/ System.out.println(

Protractor/Jasmine drag and drop only grabbing text not the element

别来无恙 提交于 2019-12-07 17:45:22
问题 I have a Protractor/Jasmine E2E Automation test that is to drag and drop a couple of collapsible panels to change the order and just verify they the elements have been moved. I'm currently running latest versions of Protractor, Jasmine, and webdrivers (tests run in IE 11) EDIT: Found out we're using ng-dragula to perform the drag and drops. I'm assuming protractor just isn't playing nicely with this. I'll do more digging about it, but still curious to know if there's a work around. /end edit

How can I drag & drop a file from the shell? [duplicate]

无人久伴 提交于 2019-12-07 16:59:35
问题 This question already has answers here : Cross-application drag-and-drop in Delphi (2 answers) Closed 5 years ago . I am trying to drag and drop a video file (like .avi) from desktop But ı can not take it to the my program.But when ı try to drag and drop inside my program it works fine.For ex: I have an edittext and a listbox inside my pro and ı can move text that inside edittext to listbox.I could not get what is the difference ?? I take the video using openDialog.But ı wanna change it with