drag-and-drop

Drag and Drop in UWP in list of bank accounts

二次信任 提交于 2019-12-23 10:13:11
问题 I have a Universal Windows Application for a local bank, I'm working on a money transfer view, and they need to transfer money from account to account using the Drag and Drop feature in UWP applications. I've made the animation part, but I need help after I drop the list item to the "Account To" list. I'll attach a screenshot to make it clear. As you see in the picture, I need to drag one item from the "From Account" list and drop it on only one item on "To Account" list. How can I achieve

How to make a leaflet circleMarker draggable?

◇◆丶佛笑我妖孽 提交于 2019-12-23 10:10:07
问题 Using leaflet, I created a L.circleMarker and I want it to be draggable: var marker = L.circleMarker(new L.LatLng(48.94603, 2.25912), { draggable: true }) .bindPopup('Circle marker draggable') .addTo(map) .on('dragstart', onMarkerDragStart) .on('dragend', onMarkerDragEnd); Unfortunately, I don't get any call of onMarkerDragStart/End functions when I drag the marker. However, if we use L.marker instead of L.circleMarker , it works. So, does anyone know how to make the L.circleMarker draggable?

JavaScript: Capturing right click and disabling menu only within certain element

让人想犯罪 __ 提交于 2019-12-23 09:37:41
问题 I have coded a jquery script where there is a small grid on screen and using drag and drop users can place tiles on the grid (snaps in place). Currently if you hover over a tile it fades in the option to rotate, but I would much prefer it if you could right click to rotate (making it more natural). I understand blocking right click completely is often frowned upon so was wondering if it was possible just within a particular element, then capturing that event, doing something in JS and

Dragging a QWidget in QT 5

谁说我不能喝 提交于 2019-12-23 09:23:11
问题 I have to make something like the iOS interface, 3x3 field of icons that can be dragged to change their position, and then remember it in an XML file. I decided to use Grid class (QWidget is parent) as a container and my own class, inherited from QWidget, as elements. Now I'm trying to learn how to perform a drag & drop for QWidget, but it seems like you are only able to drop onto a QWidget, but it's impossible to drag it. Is it impossible? How do I move this thing? 回答1: Dragging a widget isn

Implement Drag & Drop in Gingerbread

时光怂恿深爱的人放手 提交于 2019-12-23 08:58:49
问题 I need to know how I can implement Drag & Drop in Android for the Gingerbread version. As I know Gingerbread doesn't support that by default. What I have coded: a ViewGroup class to hold dynamic added child, each child should after a long click be able to get moved through a finger tap/move. To solve this, i have a OnLongClickListener attached to each View 's child and my ViewGroup have implemented both the methods onTouch() to get the down/up/move events and the method onLongClick() to

How to swap two image views using drag and drop in Android?

喜你入骨 提交于 2019-12-23 08:33:12
问题 I've been trying to implement a very simple drag and drop in Android, where the dragged item swaps positions with the item it was dropped on. I've successfully implemented the onLongClick and onDrag listeners. When I drag and drop an item it replaces the item it was dropped on, but I can't figure out how make the replaced item take the place of the dragged item. I spent a while searching for answers, but most answers just linked complex implementations of drag and drop involving many files

AngularJS ng-drag

自作多情 提交于 2019-12-23 07:55:46
问题 I'm new to AngularJS and I have a bit pressure on the current project that's why I'm asking here. I see that AngularJS has ng-dragstart event (http://docs.ng.dart.ant.c-k.me/angular.directive/NgEventDirective.html) but it doesn't seem to work. On other pages I can see that other developers recommend to do new 'directives'. So my question is: "Is there a native ng-drag functinallity implemented within AngularJS or should I implementi by myself?" 回答1: You'll need to implement it yourself if you

drag and drop options

跟風遠走 提交于 2019-12-23 06:00:43
问题 I'm doing a simple tool. If I drag n drop files ,folders into my form it will automatically open the corresponding file and folder. Now I want to do it for .lnk files(shortcuts) if I drag a .lnk file, it must open the target file. 回答1: Okay this is a simple mock up but you should get the idea... First add the COM 'Windows Script Host Object Model' reference to your project. Next include the line... using IWshRuntimeLibrary; For this example I just used a list box control but use what ever you

drag and drop options

醉酒当歌 提交于 2019-12-23 06:00:28
问题 I'm doing a simple tool. If I drag n drop files ,folders into my form it will automatically open the corresponding file and folder. Now I want to do it for .lnk files(shortcuts) if I drag a .lnk file, it must open the target file. 回答1: Okay this is a simple mock up but you should get the idea... First add the COM 'Windows Script Host Object Model' reference to your project. Next include the line... using IWshRuntimeLibrary; For this example I just used a list box control but use what ever you

Gridster not dynamically moving widgets

安稳与你 提交于 2019-12-23 05:28:01
问题 I am trying to use Gridster.js to do some drag and drop functionality in my project. I am using a bunch of divs for my widgets, with forms and buttons inside of these, instead of using an unordered list. My issue is that my first column is not being able to drag, and i can not drop my widgets anywhere. They just drop to back to their original spot Here is my layout: <div class="gridster"> <div class="dragMe" data-row="1" data-col="1" data-sizex="1" data-sizey="1"> <form> <button>//button