drag-and-drop

Javascript - getting path of file dropped into HTA

和自甴很熟 提交于 2019-12-12 08:16:39
问题 I am building a little HTA for personal use, and would like to be able to drag and drop a file to the interface. Once the file is dropped, I would either automatically run it (assuming it fits some parameters I set, like file extension), or at least fill in the input box on the HTA interface. I've searched extensively, but can't find a solution. Thoughts? 回答1: An HTA obviously cannot be target of a shell drop operation – at least on my system, dropping something on an HTA is impossible. This

Drag and drop ImageView into a container for verification

为君一笑 提交于 2019-12-12 08:12:56
问题 To understand it better read this : First game : Skate QuestionMark Archery QuestionMark Swim QuestionMark --------------------------- Water Bow Wheel If user drags Water to Skate or Archery QuestionMark it will animate to the list (because it is not correct) If user drags twice incorrect (it will mark the one that is correct from the answer list) If user still fail in the third try it will drag to the incorrect one and then it will highlight or just change the color doesn't matter to red. If

Angular 2 drag and drop directive extremely slow

放肆的年华 提交于 2019-12-12 07:56:52
问题 I am trying to implement a custom drag and drop directive. It works, but it is extremely slow, and I think the slowness can be tracked to Angular 2 because I've never encountered this slowness before. The slowness only occurs when I attach an event listener to the dragover or drag events (i.e. the events which are sent frequently), even if I do nothing but return false in them. Here's my directive code: import {Directive, ElementRef, Inject, Injectable} from 'angular2/core'; declare var

Jquery, drag and drop and save to mysql database?

核能气质少年 提交于 2019-12-12 07:37:30
问题 I have been searching all over the web, i could only found the inettuts-with-cookies, which teach how to use Jquery to perform drag and drop and then save in cookies. Can anyone please show me how to save to database (php and mysql)? I need it badly.. EDIT: First, I am not php beginner, but a AJAX beginner. Those tutorials are only for 1 column. Does any one have drag and drop and save to database for 2 or 3 columns? PLEASE>>> 回答1: This one just came out: Sorting items on the fly (AJAX) using

HTML5, JavaScript: Drag and Drop File from External Window (Windows Explorer)

怎甘沉沦 提交于 2019-12-12 07:06:52
问题 Can I kindly ask for a good working example of HTML5 File Drag and Drop implementation? The source code should work if drag and drop is performed from external application(Windows Explorer) to browser window. It should work on as many browsers as possible. I would like to ask for a sample code with good explanation. I do not wish to use third party libraries, as I will need to modify the code according to my needs. The code should be based on HTML5 and JavaScript . I do not wish to use JQuery

ImageIcon click and drag around the window

旧街凉风 提交于 2019-12-12 06:33:26
问题 I'm trying to make it so I can click and drag an ImageIcon (in this case a card image but I'd like to learn how to do it generally) around the window but I don't really know how. I would like to be able to click and hold the mouse botton, drag the ImageIcon, and have stay where it is whn I release the mouse botton. This is the code I have so far: import javax.swing.*; import java.awt.*; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseListener;

Suggestion: Drag and Dropping Between PictureBoxes

戏子无情 提交于 2019-12-12 06:17:02
问题 I have included 2 images so you can understand my question easier, I could not link them directly in here as I am a new member, so I have put them in my Dropbox public folder, Image 1: Design View https://www.dropbox.com/s/wca5gstd8kdsie7/designView.png?dl=0 Here you can see a Group Panel on the left, With 6 smaller boxes nested they are all "pictureBoxes", Then on the right is a larger picture Box, with a smaller one nested inside, Image 2 Application Running https://www.dropbox.com/s

Controlling drag-n-drop disable/enable of QTreeWidget items - python

我的未来我决定 提交于 2019-12-12 05:39:34
问题 In my example I want users to have the ability to drag and drop children between families of all kinds. However I want to restrict users from having the ability to drag and drop a person onto another person, or dropping a person as a root object which in return would make it become a family. I've gotten very close. There is a single bug though. If a user drags a person to a family, while hovering over the cursor over the family, if you carefully move the cursor to the top most edge of the

notifydatasetchange not working

孤者浪人 提交于 2019-12-12 05:38:53
问题 I know that this question is asked many times but i can't seem to make it work in my app I create custom adapter that extends BaseAdapter, and inside it I put listener of drag and drop function to rearrange the order of the items on the list. so I need to call notifydatasetchanged when drop action is performed, and I did, but don't seem to reorder the data even though when I print out the data to LogCat is already sorted the way I want it. I try recommendation like using asyncTask, Activity

Kinetic.js removing image from canvas on click of a button outside the canvas

丶灬走出姿态 提交于 2019-12-12 05:12:19
问题 Need some help.. I don't know if it's the kinetic.js library problem or I'm doing something wrong here.. I am loading 2 images on windows.onload and then there are set of images outside the canvas and onclick of the images I'm placing those inside the canvas which is working fine..(I have used just a single function to load any image from outside the canvas by doing this.. Set of images : <li> <a href="javascript:void(0)" onclick="loadWithType(document.getElementById('i3'))"> <img src="<?php