drag-and-drop

Dragging and Copying Images in wxPython

故事扮演 提交于 2019-12-23 19:47:33
问题 I am attempting to modify the DragImage demo from the wxPython examples so that instead of just moving the image around, dragging an image produces a new copy which is draggable, while the original "source" image remains. A decent analogy is that the original images are like a set of widgets to choose from; clicking and dragging on any one of those produces a widget for you to place wherever (and this can be done multiple times) while the source widget remains. import os import glob import wx

Drag and drop interface for SQL database table mapping, dotnet core

强颜欢笑 提交于 2019-12-23 19:13:44
问题 Have this problem, that I can't get my head around. I have absolutely no idea where to start with this. I have these two simplified tables (MSSQL): Table 1 ------- ID | LetterCode --------------------- 1 | ABC 2 | DEF 3 | GHI Table 2 ------- ID | NumberCode | MappedTo | ConcatCode ---------------------------------------------------------- 1 | 123 | | 2 | 456 | | 3 | 789 | | What I need to build is an web interface (GUI, site is built using dotnet core) where a user will have two panels: Left

Flash AS3 - Drag and Drop multiple objects to one target?

有些话、适合烂在心里 提交于 2019-12-23 18:40:49
问题 Title is more or less self-explanatory, I’ve been working through many different tutorials and I’m not exactly too good with AS3 to be perfectly honest. (Image above shows what I'm aiming for) Anyway, what I notice in most of the online tutorials I see, the drag and drop tutorials are either based on one object to one target or multiple objects to multiple targets, so I was wondering if someone is kind enough to help me and explaining how I can get multiple objects to connect to one target.

UITableView: move cell to a position to another with drag & drop

白昼怎懂夜的黑 提交于 2019-12-23 18:01:45
问题 i have a table with 3 section (section one, section two and section three). I would like implement a mechanism to change a cell's position with drag & drop (inside same section or from a section to another). Example 1: In section one i have two rows (sec1_row1 and sec1_row2). In section two i have one row (sec2_row1) by drag & drop function i would like invert the sec1_row2 with sec2_row1. I would like select the sec2_row1, drag it on sec2_row1 and drop it so the rows are inverted. I would

How to hide Mac/OSX Drag and Drop JTable selection frame

ぃ、小莉子 提交于 2019-12-23 17:13:27
问题 When performing a drag and drop on a JTable there is an outline of the selected cell (selection frame) that appears while dragging. How can I override that behavior and not show anything but perhaps a special cursor? Running the following code in Windows and OSX shows the behavior I'd like to override! import java.awt.BorderLayout; import java.awt.dnd.DnDConstants; import java.awt.dnd.DragGestureEvent; import java.awt.dnd.DragGestureListener; import java.awt.dnd.DragSource; import java.awt

WPF DragDrop.DoDragDrop (for a RIGHT-Click?)

為{幸葍}努か 提交于 2019-12-23 16:49:39
问题 In WPF I want to do initiate a drag-drop using the right click. Something like windows explorer, right click, move slightly and you get the adorner to indicate a drag drop in operation. Don't move and you get the context menu when you let up the button. I have it all initiated but when I call the "DragDrop.DoDragDrop" it immediately falls right through, it doesn't wait for the mouse up. I did see this link Stack Overflow Question and it refers to a Silverlight article and the need for the

Getting the filename during the dragenter event

孤街浪徒 提交于 2019-12-23 16:22:06
问题 I'm developing an interactive file-uploader in JavaScript and HTML in which I need to access the currently dragging files filename (the one that triggers the dragenter event). But there's a problem, the events dataTransfer member does not contain any files, and I really need to know the filename before the drop event is thrown. Is it possible? Thanks in advance. 回答1: I guess you might have to declare a local variable for it....and remember to initialize it when drag start....kill it when drag

Drag'n'Drop ConcurentModificationException

南楼画角 提交于 2019-12-23 13:15:53
问题 OnDragListener: @Override public boolean onDrag(View v, DragEvent event) { switch (event.getAction()) { case DragEvent.ACTION_DRAG_ENTERED: switch (v.getId()) { case R.id.delete_zone: { addToShowCaseZone.setImageDrawable(getResources().getDrawable(R.drawable.showcase_2)); inAddToShowcasesZone = true; break; } case MagazineGridAdapter.ID: { enteredView = v; break; } } return false; case DragEvent.ACTION_DRAG_EXITED: { switch (v.getId()) { case R.id.delete_zone: { addToShowCaseZone

Drag a mesh over another and limit it within the sides three.js

大兔子大兔子 提交于 2019-12-23 12:58:18
问题 I have to create a house like structure where user will be able to add windows on wall. The approach I am thinking is to first create a separate mesh for window which user can drag over the selected wall of the house mesh, and drops where they feel it suitable, but within the same wall or same side of the house mesh. After that I will create the whole scene again but draw the window in the wall of the house mesh instead of creating a separate window mesh. Following is what it will look like

How to implement drag-and-drop between lists in android?

旧时模样 提交于 2019-12-23 12:41:15
问题 I'm trying to make it so that the user can drag a textview from one listview and then drop it into another, and I'm finding it to be very difficult. The biggest problem I have found so far is that onTouchEvents seem to only be heard in the view that the ACTION_DOWN event originated in. I'll click in one list and the ACTION_DOWN is heard in there. Then I'll drag outside the list and let go over another list. But the onTouchEvent is only being called for the original list, no matter where I'm