I currently use the below code to be able to drag an element around inside a div container (this is important, it can't just be dragged around anywhere eon the page). I use mootools to accomplish this, but I am converting everything to use prototype, but I can't figure out how to get this to work with prototype.
window.addEvent('do...
Hi all,
I've successfully been able to create 2 DIV's, and at run time populate the 1st DIV with a whole bunch of objects, all with the .drag class. The 2nd DIV has the .drop class, and is waiting for the user to drag and drop some objects into it. The problem is, whenever I try to drag an object outside of the 1st DIV, a scroll bar app...
Hi everyone
I'm doing a simple tool. If I drag n drop files ,folders into my form it will automatically open the corresponding file and folder. Now I want to do it for .lnk files(shortcuts) if I drag a .lnk file, it must open the target file.
...
Hi all,
I am tying to realize a drag-to-scroll functionality in my application and have problems on my way. Can anybody help me?
I have a ScrollViewer and inside it an ItemsControl and within ItemsTemplate I have a UserControl. I want to drag that UserControl within ItemsControl. I want the ScrollViewer to scroll down, when I am dragging...
Hi all,
While using DragAndDrop function on a splitter control what I see is first it
gets stuck most of the times. Also when I give the offset as +70 it moves to
the position which is 70 units away from the start of the screen. What I
understand is that it should move 70 units away from where it is now.
Any idea why this is not workin...
I wonder if anyone knows if there's any way to start OLE file drag from a C++ Win32 application without blocking until the drag completed.
I'm currently using DoDragDrop() to start the drag operation, but this function doesn't return until the drag operation is completed.
The problem with this is that the animation in my program halts w...
Hi,
In days of ajaxish Web2.0 I wonder whether it is possible to create 100% barrier-free web pages or if there are even patterns to support common Web2.0-practices.
What came to my mind is drag&drop. Is there an all-round solution for this or does it depend highly on the way the technique is used?
Thanks!
...
Hi,
How do I do a drag-drop operation between two list boxes in an XBAP Partial Trust application? The API DragDrop.DoDragDrop throws a security exception in an XBAP Partial trust app because internally it uses OLE transfer. Any help with some sample code?
Thanks,
Jithu
...
I have a WinForms application where I'm doing drag and drop between 2 TreeViews.
At some point, I want to reject the action in the underlying business implementation, so I throw an Exception. I can see the Exception in the Output window but the problem is that I can't see it in the UI and it doesn't crashes.
Where did the Exception g...
Hi,
I want to use an inner div to drag around an outer div, for example:
<div id="outerDiv" style="height:300px; width:200px;">
<div id="innerDiv" style="height:10px; width:200px;"></div>
</div>
If this is my code, assuming the proper JQuery plugins are attached to use draggable, etc... How can I make it so that when the user cl...
I would to display the Simulink workspace in a MATLAB GUI window. This is
cosmetic as I know well that Simulink operates fine without this addition.
However, I have no idea how to have a space in a GUI where the Simulink
workspace can be displayed. Effectively, the GUI would form a thick frame
around the Simulink workspace. Please le...
Trying to get some basic drag/drop functionality happening for an iPhone application.
My current code for trying to do this is as follows:
- (void) touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event
{
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView:self];
self.center = location;
}
This ...
I have a form that has 2 splitters.
One splitter splits the form horizonally into 2 columns.
The other splits the left column into 2 rows.
On the left hand column, top "row" I have a treeview.
On the right hand column, I have a image viewer.
I want to drop a treeview node onto the image viewer and do something with it.
The viewer is ...
Has anyone ever handled a drag drop of emails from thunderbird? any references links code?
I want to be able to drag emails from thunderbird to my application?
...
The code is:
DropTarget target = new DropTarget(sqlViewer.getTextWidget(),
DND.DROP_DEFAULT | DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK);
Transfer[] types = new Transfer[] {TreeLeafListTransfer.getInstance(),
TextTransfer.getInstance(), FileTransfer.getInstance()};
target.setTransfer(types);
target.addDropListener(n...
Hello... i've been dealing with this problem for quite a while:
Our company develops addins for word/excel/ppt (both for 2003 and 2007 versions)
One of the options our addins offer is to drag a table from the addin into the application.
This is implemented in 3 different ways:
Excel --> we create a tab delimeted string and drag-drop...
Hi All,
I'm looking for a mechanism in Rails by which to facilitate multiple drag-and-drop items simultaneously. Basically I want to select multiple and drag. Obviously I'd prefer to stick with standard HTML items and javascript, but if this isn't possible I'll consider a straightforward Flash implementation.
Thoughts?
...
I have a list of files with their names in a listbox and their contents stored in an SQL table and want the user of my app to be able to select one or more of the filenames in the listbox and drag them to the desktop, yielding the actual files on the desktop. I can't find any documentation on how to do this. Can anyone explain or point...
I have a Form object with a title bar displayed.
I need a pure managed way(P/Invoke-free, both Mono and .NET compatible, preferrably a .NET 2.0 API) to detect when the FORM itself starts being dragged, changes location and when it is dropped(not any content).
I did this in the past in Mono but I don't remember how anymore and I don't k...
We have a WPF application that has custom windows on a canvas which in turn contain custom controls (the main canvas containing the custom windows is again custom control displaying stuff). So basically the visual tree looks like this (without implicit Borders and other things):
- Windows
- Canvas
- WindowMgr
- CustomWindow ...