drag-and-drop

How to add a JLabel on the DRAG_LAYER under the mouseDragged event

Hi everyone, I am currently working on a drag n drop application and I would really like to know what's happening inside the JLayeredPane and I get a particular program behaviour... Here's the deal: I have a chessboard placed on the DEFAULT_LAYER. I also have a chessPiece which I'd like to be added to the DRAG_LAYER when I move it. B...

How to use mouse drag to move triangle

I draw a triangle using mouse drag. After drawing many different triangles, I wanted to move some of the triangles into different location using mouse drag, however I don't know how to drag the triangle to different location. Help please :=( ...

General way of setting element bounds

Hello There, I'm writing an application which is basically a designer very similar like Expression Blend or Visual Studio designer. So basically there are a bunch of UI elements on a design surface and you can do things such as drag'n'drop, resize, rotate, etc. The main container control, which will be the designsurface can be any cont...

Richfaces drag and drop object not defined?

Mozilla is spitting out DnD is not defined errors on all of my rich:dragSupport and rich:dropSupport tags. When I check out the generated javascript the DnD object is where it should be and things look ok. Any ideas on why my DnD object is not defined? Has anyone come accross gotchas with using richfaces dnd? We are using Richface...

Is there an post Drag and Drop event?

I'm trying to implement drag and drop capability into a custom data grid control. In the end, I'd like to be able to drag rows between 2 of these custom data grids. I believe I have everything working as expected. However, I need to do some cleanup in the drag and drop source control. Specifically, I need to refresh the grids after i...

jquery droppable item overlap

i have 1 draggable div and 2 droppable divs. those 2 droppable divs also are draggable. so there might be a chance those 2 divs are overlapped. in that sitchuation when i drag the draggable div and drop to the overlapped divs. is there anyway to make sure it drop on the top one? ...

Ruby on Rails drag and drop won't work

Hi, I am trying to create a Ruby on rails application using the integrated scriptaculous drag and drop effect. Since I'm new to the ruby language I ended up with this code while viewing many documentation but can't understand why the controller code is not executed. In the html.erb page the origin div <% for therm in @therms %> ...

How do you change a drag-and-dropped image mid-drag?

So I want to drag an object from one source to multiple potential destinations. When the object is over each destination, I want it to 'morph' into a different image. Is there a straightforward way to do this from the NSDragSource perspective? ...

DragDrop setting SelectionData format

I am playing a little with drag and drop under gtk#. When calling protected virtual void OnDragDataGet (object o, Gtk.DragDataGetArgs args) { byte[] data = GetSomeData(); args.SelectionData.Set(args.Context.Targets[0], 0, data); } an error occurs: Gtk-CRITICAL **: _gtk_selection_request: assertion `(data.format >= 8) && (data.forma...

How do I run a function when I mouseout of all hover events in jQuery?

I have 4 elements that have the same class name that all react when hovered over.. Is there any way to: - Run a function when I am no longer over any of the classes? Here's what I have- HTML: <div class = "item">Hello</div> <div class = "item">Hi</div> <div class = "item">Ok</div> <div class = "item">Wahoo</div> jQuery: $('.item'...

WPF Drag & drop from ListBox with SelectionMode Multiple

I've almost got this working apart from one little annoying thing... Because the ListBox selection happens on mouse down, if you start the drag with the mouse down when selecting the last item to drag it works fine, but if you select all the items to drag first and then click on the selection to start dragging it, the one you click on g...

Adobe AIR drag and drop directory

Hi, Please let me know how can I drag and drop a directory from windows onto Adobe AIR panel. The folder has subFolders inside. The subFolders have many files. I want to drag the parent folder and drop it so that the whole structure has to get uploaded. Please help. ...

WPF ListBox drag & drop interferes with ContextMenu!?

I'm implementing drag & drop from a ListBox, but I'm seeing some strange behaviour with a ContextMenu elsewhere in the window. If you open the context menu and then start a drag from the ListBox, the context menu closes but won't open again until after you perform another drag. Does this make sense? Anybody got any ideas what might be...

Windows 7 - translucent drag manager?

When dragging a file from Windows Explorer into other apps, I now get a nice icon of the files I drag. I cannot remember this from previous Windows versions so I was hoping that they finally implemented the equivalent of the Translucent Drag Manager where you can associate a transparent image with the drag contents. Does anyone know anyt...

flex: drag-drop problem

Hi; I have two Lists that both are drag-drop enabled. I also draw a chart according the items in the second list and trigger drawChart method whenever a drag-drop event occurs between them. Drag drop and dynamic charting work properly except one problem. I put dragComplete="drawChart()" to both of lists. Dragging from first list to s...

Dragging and dropping a control from one form to another results in moving the control

Hi, I want to have another copy of some control upon dragging and dropping it to another form. My code results in moving the whole control. Is there a way to have the two of them being displayed at once given that I want them to have the same reference because the source updates values every second. here's my code public partial c...

Flex 3 Tree drag-and-drop is slow

Hello, I have another drag-and-drop question. I'm using DnD on a Tree component and it works fine, when I have up to 50-80 items in the tree. However, when I have 100-300 items, the simple drag-and-drop operation suddenly eats all my CPU capacity and the application freezes for up to 1 minute. I suppose that happens because Flex is tr...

Accept a pdf page drop into a C# windows form application

I am trying to allow users to drag a page from a PDF pages tab into a C# listbox control. The only information I need from acrobat is the file name of the document they are dragging from and the page number/numbers they have dragged over. I tried finding out this information from the debugger(add a break point at my dragenter event han...

Flex:: How do I prevent in drag and drop, dragging onto self

I have a Flex question. I was wondering, if I have two list boxes, and I want to drag and drop between both of them, how do I prevent the user from dragging onto the same list (thus duplicating the item? I cannot have a situation where that is the case. Thanks guys ...

Webkit.framework and Google Gears drag and drop support

I would like to support drag and drop from Google Gears in my MacOS application (Google Wave client Waveboard - http://www.getwaveboard.com). Although the Gears plugin seems to work in my WebView it does not respond to drag and drop actions like it should. In Safari and Fluid this works fine. Question: Does someone know if I need to set...