drag-and-drop

How to delay the Drag-Start to combine move and Drag-And-Drop dynamically

倾然丶 夕夏残阳落幕 提交于 2019-12-24 21:50:24
问题 I want to provide an application that: allows to move images around (here a rectangle) if that object is moved out of the working area, start Drag-and-Drop for transfere to other applications So the javafx DragDetected() would come too soon during the object move on the canvas area, I suppress the onDragDetected() handling and in the onMouseDragged() handler I tried to convert the MouseDrag event into a Drag event using event.setDragDetect(true); But the onDragDetected() comes never again....

PySide: Movable labels snap back to original position when released. Trying to make them move freely

岁酱吖の 提交于 2019-12-24 19:22:07
问题 The following code implements 5 movable labels. When I try to change the color of the labels while they are being moved, the labels snap back to the original position when the mouse button is released. When you comment out the part where setStyleSheet is used, it works and the labels are able to move and be released freely. import sys from PySide import QtGui from PySide import QtCore from PySide.QtGui import * from PySide.QtCore import * from Drag import Ui_Dialog class MainWindow

How can I tell a shortcut from a file in a C# drag and drop operation?

耗尽温柔 提交于 2019-12-24 19:12:19
问题 I have a C# .NET 3.5 app that I have incorporated the DragDrop event on a DataGridView. #region File Browser - Drag and Drop Ops private void dataGridView_fileListing_DragDrop(object sender, DragEventArgs e) { string[] fileList = e.Data.GetData(DataFormats.FileDrop) as string[]; foreach (string fileName in fileList) { //logic goes here } } My question is, how can I differentiate a windows shortcut from an actual file? I tried: File.exists(fileName) in an IF block which is useful to filter out

Are there any good jQuery drag and drop file upload plugins?

杀马特。学长 韩版系。学妹 提交于 2019-12-24 19:03:01
问题 Are there any good drag & drop jQuery plugins that give me the same functionality as dragging and dropping attachments in Gmail? Preferably I would be able to see the upload progress as it is going. But I don't want flash. CSS, HTML5 and jQuery preferred. Thanks. 回答1: If speed is an important thing to you, use this plugin, The API is very similar to jQuery UI's draggable and droppable plugins http://plugins.jquery.com/project/event-delegated-drag-and-drop some other links http://www

Flutter adding more options for dialogs

江枫思渺然 提交于 2019-12-24 18:50:30
问题 is any solution to make drag and drop dialogs in flutter? for example after showing dialog in center of screen i would like to drag it to top of screen to make fullscreen dialog over current cover, for example this code is simple implementation to show dialog and i'm not sure, how can i do that import 'package:flutter/material.dart'; void main() => runApp(new MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp(title: 'Flutter Demo'

MatTable Row Span Drag & Drop Issue

无人久伴 提交于 2019-12-24 18:38:50
问题 I am trying to achieve drag and drop functionality in angular table row but the issue is the table I have has spanned row.When I try to drag and drop the spanned row it just pick up a single row instead of whole spanned row. I am using https://stackblitz.com/edit/angular-wudscb-kpjdfv to achieve row span in angular table. app.component.html <table mat-table [dataSource]="dataSource" class="mat-elevation-z8" multiTemplateDataRows cdkDropList [cdkDropListData]="dataSource" (cdkDropListDropped)=

Jquery Drag Drop Item Count and Ajax Post Update

☆樱花仙子☆ 提交于 2019-12-24 18:33:47
问题 JQuery UI using drag drop. When I drag and drop items, I want the value "Act and DISPLAY cards (0)" to change to 0. I also need Ajax code to update the data when the persistence is finished. https://jsfiddle.net/qxwLa98z/ <div class="col-lg-12" id="maximum-drag"> <div class="title-box"> <h5>ACTIVE DISPLAY CARDS (<span>0</span>)</h5> <div style="font-size: 14px;color: #6e6e6e;">It is a list of your display cards that are active on the server.</div> </div> <div class="flex-container" id="active

get dragged shadow location on View.OnDragListener

南笙酒味 提交于 2019-12-24 17:28:15
问题 I am using drag and drop functionality in my application. It works fine. Now i am facing issue while animating view when view comes back to it's original position if it is not placed on dropped view. I have created my shadow view by View.DragShadowBuilder shadowBuilder = new MyDragShadowBuilder(view); view.startDrag(data, shadowBuilder, view, 0); And my shadowbuilder class is, private static class MyDragShadowBuilder extends View.DragShadowBuilder { private static Drawable shadow; public

ExtJS Maximum call stack size exceeded when reordering tree

岁酱吖の 提交于 2019-12-24 16:23:02
问题 I'm reordering the hierarchy of a tree with drag and drop. After moving multiple nodes I get the error Uncaught RangeError: Maximum call stack size exceeded . The error appears in NodeInterface.js . The updateInfo function crashes in the following line for (i = 0; i < childCount; i++) { children[i].updateInfo(commit, childInfo); } What could cause this problem? The following code shows how I implemnted the drag and drop and reordering in ExtJS 6.5.2. Maybe you can find what's causing the

Drag and Drop in WPF not working for DataFormats.FileDrop

独自空忆成欢 提交于 2019-12-24 15:42:44
问题 I am developing WPF application, with severals drag and drop support. In my application has several controls: listView_A, listView_B, and radioButtons. my drag and drop works if I drag item from listView_A -> listView_B, listView_A -> radioButtons etc. But I am unable to drag file from windows to all of these controls (listview and radiobuttons), it just display a "no entry" cursor. All of the controls has "AllowDrop" set to True. I had tried all options I had, please help. 回答1: It is a known