drag

Dragging Custom Node in JavaFX

I cannot get it working although I am very close to an acceptable solution. I can drag the Dock if it is only a rectangle. But if I add a node (e.g. an image) to this dock I am not able to get a working solution. Here is my code: public class Dock extends CustomNode { // initialize this with an 64x64 image of your choice // vi...

How to create a controllable flip effect (flip as far (and fast) as you drag) of an UIView

I have a card (a flashcard you could say) What I can do: On fingersweeping over the flashcard the card gets turned. It's happening by detecting touchesBegan and touchesMoved and then I do stuff like [UIView beginAnimations:@"View Flip" context:nil]; [UIView setAnimationDuration:0.5]; [UIView setAnimationCurve:UIViewAnimationCurveEas...

How to drag a datagrid header to an itemscontrol in Silverlight ?

How do you drag a data grid column header content to a stack panel in silverlight 4? It seems you can only drag it to reorder the column but not to copy it to another items control... ...

Hhow to scroll without dragging in flex?

HI I have a collapsable Title window that has scroll bars on it. When i try to scroll by clicking and dragging the scrollbar, the entire window moves. How can i stop this?.... Thanks ...

Get the coordinates of a drop event in Javascript?

I made a javascript library that lets me drag a marker from a dragzone to one or more dropzones. The problem is... the mouseup event happens over the marker I'm dragging, no te dropzone. How can I detect in wich dropzone was the marker dropped, and in wich coordinates? Here's my script: http://dl.dropbox.com/u/186012/demos/dragger/dr...

Have 2 finger drag call a method, but not interact with a UIScrollView

I have a view with a UIScrollView that contains a UIImageView. The UIScrollview does not occupy 100% of the screen, like so: View ---> UIScrollView (size is approx 200 x 200 px) `----> UIImageView I want to enable 2 finger drag 'anywhere' on the screen, which will call a method, but this drag will have no effect of the functionality o...

chrome sets cursor to text while dragging, why?

my application have many drag and drop features. and while dragging i want that cursor changes to some grab.cur. ie and firefox are working fine in this. but in chrome it always changes the cursor to text cursor. I m stuck badly please help. ...

iPhone UITableView row drag-move

How would you know if a row from UITableView has been move via drag? Is there an event to catch? ...

SWT Browser Drag and Drop

I'm trying to use drag-n-drop with an embedded SWT Browser, so that my application can drag hyperlinks from the Browser to another Control. I've been able to set up the destination to receive data from an external browser, but the internal does not seem to participate in the drag-n-drop. Any ideas? I would guess that I need something ...

Jquery prevent dragging of text value

I have a html textbox on which I've bound a function via jQuery to the paste event to prevent users pasting a value into the textbox. This functionality works well. However it is possible to select some text from another textbox on the page and drag it into the textbox in which pastes are prevented. Is there a jQuery event that I can b...

How to create the drag and slide effect from this website?

If you drag and release quickly from the horizontal menu, the menu will auto slide for a distance. It seems to slide more the faster you drag and release. Source ->appear.dk How do i achieve this effect? Has it got to do with some complex formulaes? ...

drag object vertically

i like to drag this object vertically instead of horizontally, which is doin it now: - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [[event allTouches] anyObject]; CGPoint location = [touch locationInView:touch.view]; if (CGRectContainsPoint(myObject.frame, location)){ CGPoint xLocati...

Qooxdoo: Drag a toolbar button to a tree node. is it possible?

I am trying to Drag a toolbar button to a tree node. Is it possible? I have noticed that drag start is never fired. Is there any list of components/classes available that currently allow to be dragged? ...

How to capture the value of a textbox inside the dropped item

Hi I am using the JQuery plugins Draggable and droppable and this is my draggable item structure . The Textbox value is the qty of the item being dropped onto a shopping cart. This will be changed by the user before he drops it onto the cart section. I need to capture this value after its dropped. <div class="something"> <ul...

drag image inside area

i'd like to drag the image "finga" inside a region height of 320. this goes off screen: - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [[event allTouches] anyObject]; CGPoint location = [touch locationInView:self.view]; if (CGRectContainsPoint(finga.frame, location)){ CGPoint yLoc...

Python - drag file into .exe to run script

Hi, I have a Python script that takes the directory path of a text file and converts it into an excel file. Currently I have it running as a console application (compiled with py2exe) and prompts the user for the directory path through raw_input(). How do i make it such that I can drag & drop my text file directly into the .exe of the...

Actionscript 3.0 - drag and throw with easing

I'm creating a map in flash and I would like to have a smooth movement similar to this: http://www.conceptm.nl/ I have made a start but I'm having trouble taking it to the next stage. My code currently throws the movieclip after the mouse is release but there is no easing while the mouse button is down. Any tips on how I would achieve...

Drag/Drop image url in IE

I have a requirement in our web app. to allow users to drag an image from an external site and drop it in a text editor they have open in our app. This is, as you'd expect, to let them embed the image in the document (its a rich text editor). In IE 8 this functionality appears to be broken. If I drag/drop, IE uses a relative URL for the...

C#, introduce a DragOver delay

In my application I catch a DragOver event and then perform an action. I'd like to wait for half a second before performing the action, the action should not be performed after that delay if the drag operation has ended. The only way I could think of to implement this feature is something like this: Function DragOver Event If TimerT...

Flash: Correctly handling click-and-drag outside the browser?

What's the correct way to detect, from Flash, when someone has started a drag within the browser (eg, a MOUSE_DOWN event), dragged the mouse outside the browser window, released the button, then moved the mouse back over the browser? For example (assuming StackOverflow was a Flash application): I've tried the "obvious" thing, checkin...