drag-and-drop

Get File Extension of File Dropped Onto Windows Form [closed]

大憨熊 提交于 2019-12-08 07:35:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . How can I capture the file extension of the file dropped onto a windows form? For example (pseudocode below) if extension = .xlsx { method1 } if extension = .txt { method2 } else { MessageBox.Show("Please drag/drop either a .xlsx or a .txt file"); } 回答1: You have to keep in mind that the user can drag more than

Cannot drag and drop with protractor in website using ng2-dragula

时间秒杀一切 提交于 2019-12-08 07:26:48
问题 My company project website has a drag and drop block based on ng2-dragula. This is fundamental function but i cannot use protractor to drag and drop successfully even i tried a lot of ways. Someone has the same issue with me. As i know there is no way to proceed E2E test with dragula https://github.com/bevacqua/angularjs-dragula/issues/86. WebDriver Drag and Drop in application using Dragula Protractor/Jasmine drag and drop only grabbing text not the element https://github.com/bevacqua

How do you layer imageViews in an android application?

血红的双手。 提交于 2019-12-08 07:24:25
问题 I'm trying to create my first real Android app, the code seems easy enough, but the layout is giving me problems. My app will be a drag and drop application, very simple, just drag shapes to the correct place in the "puzzle". Here's an example of how it looks right now: What I have currently is 4 ImageView s, one for the "empty puzzle" at the top, then 1 for each of the shapes below. I think the correct way to do this is to have each of the empty spots in the puzzle be an ImageView (what the

input text is being displayed double in divs

不问归期 提交于 2019-12-08 07:12:59
问题 can someone please help me? i have been trying for days but this has not been working properly my problem is that when i try to enter some text it is being displayed double one in each div if you need further explanation please ask. try typing something and you will see what im talking about when i edit them one of them changes color and the other size and font the reason is because the class are different each div has a different class on purpose this is the site http://amp.site88.net/ var z

in Gwt, there are 2 different packages (or 2 options) for doing drag n Drop? Which one is better?

家住魔仙堡 提交于 2019-12-08 07:01:10
问题 I know very little about Drag n Drop in Gwt. I searched on internet & it seems that there are 2 different packages (or 2 options) for doing drag n Drop. https://code.google.com/p/gwtquery-plugins/wiki/DragAndDropPluginForGWTDeveloppers & https://code.google.com/p/gwt-dnd/source/browse/DragDrop/ Why Google developed 2 different strategies for DnD? Which one is better? 回答1: The GWT drag&drop implementation is based on the HTML5 D&D API. Such API basically allows you to transfer data using

Eclipse RCP 4 draggable Toolbar

拥有回忆 提交于 2019-12-08 06:49:36
问题 Is it possible to create a pure Eclipse RCP 4 application, that uses the nice toolbar from the Eclipse IDE with Drag and Drop functionality? Starting with a fresh installation of Eclipse for RCP 4.5.1, I created a pure e4 application with sample content using the wizrad. It contains two toolbars, but D&D functionality is missing. So what to do next? 回答1: There was Drag and Drop functionality in Eclipse 3.x (locking / unlocking toolbar) But with Eclipse 4.x its not working. You can see bug :

Drag and drop using JqueryUI not working

浪子不回头ぞ 提交于 2019-12-08 06:49:22
问题 Am following : http://jqueryui.com/sortable/#connect-lists Implemented everything as it is. Still drag and drop not working at all. Trying for 2 days. Here is the code inside head: <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <style> #sortable1, #sortable2 { border: 1px solid #eee; width: 142px; min-height: 20px; list-style

Dropping files on application icon in Dock

为君一笑 提交于 2019-12-08 06:46:27
问题 I have been hitting the wall on this issue for a few days now, and cannot for the life of me figure out what I am doing wrong (or if this is some kind of bug): I have a custom Mac application (in Java, if it matters). It essentially takes a specific type of document bundle, does some processing on it, and sends the results to a server. I have everything working, except for the one use-case of a user dropping a "file" onto the application's dock icon. Everything I have read so far seems to

Angular Material 7 Drag and Drop x and y coordinates

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 06:43:12
问题 I have a container with an element inside it. I want to be able to drag the element to another location inside the container and see the new x and y coordinates (where x=0 and y=0 is the top left corner of the container). I have a basic stackblitz set up at https://stackblitz.com/edit/material-6-mjrhg1, but it won't show the entire event object in the console ("object too large"). In my actual application, I can look through the entire event object, but I can't find any properties describing

Drag and Drop Function with Drawing Rectangle C# .net - Forms

余生长醉 提交于 2019-12-08 06:40:54
问题 I want to drag and drop that I have drawn on the forms. Here is my code for drawing the rectangle. An this works fine. Rectangle rec = new Rectangle(0, 0, 0, 0); public Form1() { InitializeComponent(); this.DoubleBuffered = true; } protected override void OnPaint(PaintEventArgs e) { e.Graphics.FillRectangle(Brushes.Aquamarine, rec); } protected override void OnMouseDown(MouseEventArgs e) { if (e.Button == MouseButtons.Left) { rec = new Rectangle(e.X, e.Y, 0, 0); Invalidate(); } } protected