drag-and-drop

Drag and drop using a class method

坚强是说给别人听的谎言 提交于 2019-12-13 02:09:38
问题 I have a range of drag drop activities all working fine on my quiz. (From answering questions to selecting an avatar) There is a lot of repetition of the code and I am thinking it would be better implemented from a class and call the method each time that I use a drag drop. Firstly can this be done? and secondly would I need a new method for the dragging and dropping? Any thoughts or rough ideas would be great. private void pictureBox2_MouseDown(object sender, MouseEventArgs e) { pictureBox2

Windows phone 8 drag and drop grid in grid by user

前提是你 提交于 2019-12-13 02:07:09
问题 I have a app which has a large grid with a stack-panel and stack-viewer. Inside there are multiply grids which go down the page. Is it possible for the user to be able to drag and drop these grids so they are in a different location. They should be able to move the grid up or down a grid or multiply grids. Should there be a button in the top right corner of every grid which when the user holds down they can move that grid up or down in the stackpanel, stackviewer. Thank you for any help :)

Jquery select multiple drag /drop

心已入冬 提交于 2019-12-13 02:05:37
问题 I want to select multiple list from one box and drag it in to another box is it possible by using jquery ? 回答1: Yes, look at the jQueryUI framework - specifically the draggable, droppable, selectable and sortable plugins. Demos here. 来源: https://stackoverflow.com/questions/5222423/jquery-select-multiple-drag-drop

Drag a file url from a winforms control to external application

南笙酒味 提交于 2019-12-13 02:02:26
问题 i need to drag rows representing files from a datagridview, and be able to drop them to any windows application as if i was doing a drag from the windows explorer, and i'm a little bit confused regarding the procedure to follow. For the moment i have the following event handler private void gridFiles_MouseDown(object sender, MouseEventArgs e) { gridFiles.DoDragDrop(gridFiles.SelectedRows.Count, DragDropEffects.Move); } The thing is that i also need to be able to drop the rows into a control

Drag component to create another one

杀马特。学长 韩版系。学妹 提交于 2019-12-13 01:27:36
问题 In all major Java IDEs, there is a GUI designer. When we select a component (A Jbutton , for example) and move it to a JPanel or JFrame , how is it done? Is it a copy of the dragged component that is created on the other container? On a project I'm working on, I have some JButton I would like to be able to drag to a panel. Theses JButton represent some actions, like "copy file", "move file", etc... When one of those JButton is dragged, some options of the action will be displayed. I checked

DOJO difference between instantiation and using source

你。 提交于 2019-12-13 00:57:53
问题 I am new to DOJO and trying to figure out the difference between these two uses of the seemingly two things. dndController: new dijit.tree.dndSource("dijit.tree.dndSource",{copyOnly:true}) and dndController: "dijit.tree.dndSource" The second one works, but when I use the first one, it gives me an error when loading my tree. It says type node is undefined. The reason I want to use the first one though is because I want to set copyOnly to true. Any answers appreciated it. 回答1: That parameter

A table and its rows gets changed in width when dragging and dropping to reorder its rows

痞子三分冷 提交于 2019-12-13 00:36:16
问题 I would like to have a table which allows me to drag and drop to reorder its rows in it. I found this SO post is very helpful: Reorder HTML table rows using drag-and-drop One solution was given in this post and its jsfiddle example is here: http://jsfiddle.net/pmw57/tzYbU/205/ Here is its Javascript: var fixHelperModified = function(e, tr) { var $originals = tr.children(); var $helper = tr.clone(); $helper.children().each(function(index) { $(this).width($originals.eq(index).width()) });

Why Angular drag and drop cdk doesn't work?

不问归期 提交于 2019-12-13 00:15:47
问题 I am developing an Angular (v7.3.8) application and I need to implement a drag-and-drop horizontal list inside a specific page of my app, named 'test.page'. So I've used the new feature of Angular v7 cdk drag-and-drop, following this documentation: https://material.angular.io/cdk/drag-drop/examples In my app.module.ts I have import { DragDropModule } from '@angular/cdk/drag-drop'; import ...... @NgModule({ .... imports: [..., DragDropModule ], ... }) In my test.page.html I have: <div

Drag and Dropping an Object Reference VB.Net

℡╲_俬逩灬. 提交于 2019-12-12 23:56:48
问题 I am trying to 'swap' two cells' contents, and their mappings. To do this, I need to drag and drop a reference to the cell as opposed to the string value itself. I can then use this reference to update a Dictionary as well as get the value. It allows allows me to do the swap as I will have a reference to the old cell to add the value needed in there. The problem I am having is I am not sure how to pass the cell reference: Private Sub DataGridView1_MouseDown(ByVal sender As System.Object,

qt: QTreeView - limit drag and drop to only happen within a particlar grandparent (ancestor)

天涯浪子 提交于 2019-12-12 22:37:14
问题 I have a QTreeView in which I have implemented drag and drop to allow the re-ordering of items. GIven the following example of a tree: Food <--fixed |--Vegetables <--fixed | |--carrots <-- draggable/parentable | |--lettuce <-- draggable/parentable | | |--icebergLettuce <-- draggable but NOT parentable |--Fruit <-- fixed | |--apple <-- draggable/parentable | |--orange <-- draggable/parentable | |--bloodOrange <-- draggable/parentable etc... Anything marked as draggable may be dragged. Anything