drag-and-drop

Transparent dragging component image as the drag icon in Swing

一曲冷凌霜 提交于 2019-12-12 01:14:27
问题 How can I set a quite large drag icon made by transparent dragging component image. So the user sees what has selected for dragging while dragging. It'd better that the image has a graded transparent level so the bottom right of the component image will be 99% transparent and the top left of the componenet image will have 50% transparency. What I need is generating the image and converting it to an ImageIcon. The component can be any thing. Even a complex one. For example a JPanel with some

drag & drop not working when page loaded in a parent div

邮差的信 提交于 2019-12-12 01:13:48
问题 I have an application that takes a list of 32 names and allows them to be dragged and dropped into nine separate divs and then to be dragged and dropped between those nine divs. When the page is executed stand alone, it works flawlessly. However, when the page is loaded into a parent div the functionality goes to hell. I can drag and drop one time only. When I attempt to drag/drop a name from one of the nine divs, to another div, I can drag it okay but when it is dropped it returns to its

Wxpython browse for or drag and drop folder

浪子不回头ぞ 提交于 2019-12-12 01:11:41
问题 I currently have this code below to manualy get a directory path, I would like to add drag and drop as well, so I could drag and drop the folder into the window. self.pathindir1 = wx.TextCtrl(self.panel1, -1, pos=(35, 120), size=(300, 25)) self.buttonout = wx.Button(self.panel1, -1, "Open", pos=(350,118)) self.buttonout.Bind(wx.EVT_BUTTON, self.openindir1) def openindir1(self, event): global indir1 dlg = wx.DirDialog(self, "Choose a directory:", style=wx.DD_DEFAULT_STYLE | wx.DD_NEW_DIR

Can we drag and drop Composite shapes from one canvas to another [closed]

懵懂的女人 提交于 2019-12-12 00:33:17
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I am new to HTML5 , as I know only basics about this. If anyone could help me in this that would be great for me. I need to design diff shapes and drag

Angular DragDrop - how to reorder items

风格不统一 提交于 2019-12-11 23:56:06
问题 THE SITUATION: I have an app that make use of angular-dragdrop to move items between three separate list. The drag and drop is working fine. But i also need to reorder the items inside the same list. I see in the documentation that is possible to retrive the index also on the onDrop, but i don't know how. If i will be able to retrive the index - that is the position where the item is left in the new array - then i would be able to make the reordering THE CODE: <ul class="thumbnails"> <li

Dragging values onto labels

蓝咒 提交于 2019-12-11 23:42:21
问题 I have an iPad app I'm developing where a random number is generated when a user clicks a button, and it appears on a label over the button, so the user thinks that value is on the button. The user can click the button again to get another random number if they want it. Is there a way for me to allow a user to drag a number from a source (say, a label) to another label - so that instead of a user having to click the button a number of times to get the number they want, they can simply drag it

Drag and drop seating arrangement in Php

﹥>﹥吖頭↗ 提交于 2019-12-11 21:31:21
问题 We are creating a website on buses and booking tickets for the same. Here the admin expects to create and modify the seating arrangement using drag and drop (including the driver's seat) according to his wish. This seating arrangement is to be maintained / recorded in a database table (in mysql). The table structure talked about in saving seat arrangement in Mysql table seems to be pretty close to the one we are looking for The non-feasible part for us is the drag and drop and its

Drawing bitmap on screen

醉酒当歌 提交于 2019-12-11 20:38:37
问题 I want my controls to show on screen when dragging. private void flowLayoutPanel1_DragEnter(object sender, DragEventArgs e) { FlowLayoutPanel _destination = (FlowLayoutPanel)sender; e.Effect = _destination.Controls.GetChildIndex(_destination.GetChildAtPoint(_destination.PointToClient(new Point(e.X, e.Y)))) >= 0 ? DragDropEffects.Move : DragDropEffects.None; foreach (Control control in flowLayoutPanel1.Controls) { List <Bitmap> controlsImgs = new List<Bitmap>(); Rectangle controlsRect = new

move image from one panel to another

怎甘沉沦 提交于 2019-12-11 20:06:36
问题 I have Code where I can move image. Everything works well. here I have only one ImagePanel (children of JPanel) on the frame. Questions: I need to drag and drop image from one JPanel to another JPanel. Then I need to move dragged image to current panel . Can you give me an example code, please? class ImagePanel extends JPanel { int x, y; BufferedImage image; ImagePanel() { setBackground(Color.white); setSize(450, 400); addMouseMotionListener(new MouseMotionHandler()); Image img = getToolkit()