drag

Link images/layers in Flash CS4 - making them move together

I have two copies of an image (one called blurPic_mc & one called sharpPic_mc) and I want to be able to move both of them around the screen together. I need them to stay exactly on top of each other for some other functions I am running but right now the only one that moves is the top one (sharpPic_mc). Any Ideas? I included my code b...

How do you make a draggable <tr> using YUI3?

Hi! I'm using YUI3 and I've been trying to make <tr> tags inside a table draggable with no luck. I've found that I can drag <div> nodes around, but for some reason I can't drag a <tr>. It shouldn't be a limitation, I've found examples of YUI2 where this is done, but the code is completely different from YUI3 and I can't figure this out....

WPF Treeview HierarchicalDataTemplate Drag and drop

I have a treeview in wpf that is built using the xaml below. It is a well structured data source, and I am having a lot of trouble dragging and dropping. I have tried several methods, all to no avail. Can anyone tell me what the standard procedure is for doing this type of thing? <TreeView x:Name="_treeView" ItemsSource="{Binding}" Gr...

constraining drag move along a path in iphone

I am making an app in which balls roll on tracks. So when we touch and drag the balls around the screen, they should move along the tracks. If the drag goes out too distant from the track, it should stop. The tracks can be any shape. What is the best appraoch..? ...

want to make a complex c++ gui simply

Hi! I want to make a nice simple gui using c++. which have drag and drop capabilities, must be light weight. Im thinking of a gui like utorrent client gui.Its light weight and simple. please give me information about most easy to use libraries / ide /plugin (on windows platform may be good). ...

Dragging A Circle on a JFrame

I am trying to have a circle appear on the screen, then when the user clicks INSIDE the circle, enable the ability for them to drag the circle where the mouse goes while it is being pressed. This is the code i have so far, the drag works, but it is allowing the user to drag without them pressing the inside of the circle, just when anywh...

Emulating Windows Photo Viewer image dragging in c#

Hi, i'm trying to emulate how image is being dragged inside the windows photo viewer when it is large. The problem is, i don't how to drag the image while keeping it intact in the form's edges. If you're observing windows photo viewer, when you drag the image downward for instance the image moves and stops when the top end of the image i...

how to disallow a div's 'left' property from exceeding a specified number

I'm using this tiny drag plugin to drag div.slider horizontally across it's div.container. I do not want div.slider to be able to go past the bounds(don't want it to exit) div.container. so when div.slider reaches the very right side of it's container div.container, i want it to not allow the user to drag it any further right, so that it...

Box2d: mousejoint without inertial delay

I'm using mousejoint to drag bodies in box2d, but it causes inertial delay. Does it exist any way to drag a body instantaneously? ...

How to drag a Farseer body with the mouse, without springiness ?

Hello everyone. I am using Farseer and XNA. I'm trying to drag an body with the mouse, but I don't want a spring behavior, like in the demos.I want the object to follow the mouse very closely and without springiness, but still be able to rotate. I tried using another invisible body attached with a RevoluteJoint and moving that, but that...

How to change cursor when dropping into Java application

Hello fellow programmers! I'm having some problems I just can't figure out... I'm writing a Swing Java application with a JList that accepts drag-and-drops. I want to change the cursor while dragging a file or folder from my system over the Java application. I've spent hours searching google but I've found nothing useful so far. Maybe...

WPF Draggable Panel Class

I'm trying to write a panel class from this two resources: http://stackoverflow.com/questions/1871358/wpf-how-to-make-the-0-0-in-center-inside-a-canvas http://www.codeproject.com/KB/WPF/DraggingElementsInCanvas.aspx The panel class will have two attached properties "X" and "Y" and if any element gives x and y to be zero then it wil...

iPhone dynamic uiview reording

This is similar to a prior question, but it was not properly answered. On the iPhone, if you touch and hold your finger on an icon, it starts vibrating, then you can drag the icon around while the other icons move aside and rearrange dynamically. Ignoring the vibration effect, how can I implement the dragging and the real-time dynamic r...

Drag & sweep with Cocoa on iPhone

Hi guys, I'm about to start a new iPhone app that requires a certain functionality but I'm not sure if it's doable. I'm willing to research but first I just wanted to know if I should at least consider it or not. I haven't seen this in an app before (which is my main concern, even though I haven't seen too many apps since I don't own a...

java - get mouse events outside of a component

i'm having the same issue as the person here, in that i need to track a frame location while it is being dragged on OS X. The question had not been resolved there, so: how do i tell a frame that a mouse down event happened on its (OS-native) title bar or, more generally, that a mouse down event happened somewhere on the screen? ...

Can't drag jQuery UI dialog

I am using jquery 1.3.2 with jquery ui 1.7.2 and in one of my pages I can only drag the dialog when I click and hold on the text in the title bar? When I hover over the blank areas of the title bar title bar the icon changes to the move icon, however, when I attempt to drag via a blank area of the title bar I simply end up highlighting ...

IE smoothing a map pan when dragging

I've trying to smooth out the performance of a map application i've been building using javascript. I initially implemented a dragging pan using onmousedown onmousemove onmouseup However in IE it feels really sluggish and it appears that when you move the cursor really fast the map doesn't update it position until you stop moving. I...

Is there a clean way that I can capture when a user left clicks and then drags the mouse?

I am trying to make it so that the user can scroll a richtextbox by clicking the window the richtexbox is on and dragging the mouse. Unfortunately I haven't gotten very far: private void Main_PreviewMouseMove(object sender, MouseEventArgs e) { if (e.LeftButton == MouseButtonState.Pressed) { } } ...

dragging in scratch

how do drag costumes during execution in scratch? ...

How can i get the Dragged Element in a Silverlight App

Hi, i have two ListBoxes (in a Silverlight 3 Application), each wrapped with a ListBoxDragDropTarget. Now i fill the SourceBox with some custom Objects (Person). Then i wire up the DragOver Event of the Destination DragDtopTarget. This all workd fine and i can drag & drop the elements from the first list to the second. Now my issue: Ho...