drag-and-drop

How to make dockable forms like in IDE?

I googled for dockable forms in delphi and found this: That's not so difficult. First off: The windows in the Delphi IDE aren't MDI forms, by SDI forms. Now to create a dockable window. Form2 will be dockable and Form1 will be the place to dock it to. Place a control (such as a TPanel) on Form1 to serve a DockSite. Make sur...

Silverlight MouseLeave Issue

I'm trying to make a color picker in Silverlight similar to this one but I'm having trouble implementing the cursor in the large square area. In order to keep track of the mouse state I have an _isMouseDown variable. On the MouseLeave event _isMouseDown is set to false, so that if a user drags out of the large square area, releases, and ...

How to make a form docked when the project is ran?

Hello, I'd like to make my form docked where it usually is when my application is executed. I see only one way of doing that: -Call OnDockDrop in the container where I usually drop it But how to setup OnDockDrop's parameters? ...

Prevent drag/drop from working between seperate instances of an app

I have an app with 2 DataGridView's and have implemented Drag/Drop to allow the user to move data between them. Within the context of my application dragging rows between two instances of a form isn't a meaningful action. I'm not sure how to detect it in drag enter so that I can set e.Effect to DragDropEffects.None. If I don't do so...

Flex: Update data-base after drag-move?

OK I have an AdvancedDataGrid. The data I feed it is XML that looks like this: <stat associate="Sam Smith" date="07/08/09" customer="James Frank"/> <stat associate="John Doe" date="09-07-08" customer ="Amanda Jones"/> <stat associate="John Doe" date="09-07-09" customer ="Henry Scott"/> But I am grouping by associate so it ends up look...

Drag and drop from C# to Windows Explorer with IStorage/IStream

I've been working on what sounds like simple functionality for way too long now. The idea is that I have an application with a TreeView. This treeview represents contents of a database organized into files and folders, much like Windows Explorer. So it makes sense that the user should be able to drag those files/folders out of my app ...

What causes an OLE DoDragDrop dragged item to change to the no-drop icon over a drop target?

By the no-drop icon I mean the circle with a slash indicating that you can't drop in the given location. Which function is responsible for triggering this icon change? ...

How do you reference an entry immediately after it's been added to a dataGrid.

I have a drag-and-drop event form in a flex project. I need to run a validator right after the item is dragged into the dataGrid. In it, I fire off a function through dragDrop="verifyEventUsers()". In the validator, I compare the contents of the two arrayCollections, but it appears to be running the checks prior to completion of the d...

Getting Flex TileList image source

I have a TileList that's loaded with data from Flickr. The tilelist uses an imageRenderer to make a bunch of thumbnails. I'm trying to create a custom drag and drop function, but I want to get the image source of the tilelist mouseEvent target. Here's what the code looks like for the drag handler: public function onPicMouseDown(e:Mou...

Detecting drops from the same process

Hi there, Is it possible for a class implementing DropTargetListener, to detect whether the stuff being dragged comes from the same process of from elsewere? ...

jQuery UI Draggable snap rulers

I am setting up a drag and drop interface using jquery and jquery-ui. I've got element snapping working, which is nice, but now I'm trying to get elements to snap at a distance, using some sort of automatic temporary guide rulers. A very good implementation is on the mac version of Powerpoint. Here's a screenshot of a drag in progress: ...

drop in an HBox

I have this HBox with drop functionality: SCRIPT: // The dragEnter event handler for the HBox container enables dropping. private function dragEnterHandler(event:DragEvent):void { if (!event.dragSource.hasFormat("items")) return; var dropTarget:Box = Box(event.currentTarget); dropTarget.setStyle("borderStyle", "out...

Checking for Copy vs. Move in Delphi Drag and Drop

Using the 'standard' VCL drag and drop events OnDragOver and OnDragDrop, how can I distinguish between "Copy" and "Move" operations? I don't seem to have a TDragType available, and the keyboard Shift state isn't passed to these events. ...

jQuery Drag & Drop automatically open link inside drag element

I'm making a drag and drop shopping cart using jQuery and FoxyCart, the drag and drop work but I don't know how to automatically open a link (inside the drag element) when an item is droppen in the cart. Basically I have a list <ul> with <li class="drag"> and inside I have <a href="..."><img src=".." alt="thumbnail"/></a> and <a href="...

jQuery Drag/Drop problem: mousemove Event not binding for some elements

Using the latest jQuery/UI that are hosted at Google. I've got the following markup: <ul id="tree"> <li><a href="1/">One</a></li> <li><a href="2/">Two</a></li> </ul> And the following javascript: $(document).ready(function(){ // Droppable callbacks function dragOver(overEvent, ui_object) { $(this).mousemove(function(mov...

Keep TreeView Subtree expanded after dataset refresh

I'm working with the July '09 CTP of the .Net RIA services, and binding an object of Group=>Department=>Category objects to a treeview, and then having a hierarchialdatatemplate render each of the three object types. What my end goal is for this will be to enable drag-n-drop functionality so that I can quickly edit my list of groups=>de...

dojo - mouse(x, y) - drag and drop - frustration.

I'm attempting to drag an object using dojo.dnd but want the avatar to be in the same position as the object was (relative to the mouse) i.e. if a person clicks in the middle of the object then the mouse cursor will be in the middle of the avatar. I've had all sorts of strange results. if i connect a function to body.onmousemove the d...

GWT DnD: Keep draggable within an AbsolutePanel

I made a MultiSlider widget using the GWT and the gwt-dnd addon to rate texts. On the screenshot, you can see the slider button with value 50 dragged outside the slider bar. It can't be dropped outside the bar, but it can be dragged outside of it. Is there a way in GWT to always keep the slider buttons inside the slider bar? EDIT: T...

Make dijit.form.TextBox TARGET of dojo dnd action

Hi there, I am new to dojo so i’ll need help. I’ll be very thankful if u can halp me. I am experimenting with dojo dnd and i have a problem to solve. I cannot find a way to make dijit.form.TextBox to be the Target of a dnd action. Can u tell me a way how to autofill the textbox with the dragged item(text)? My goal is when I drop the tex...

Not receiving Drag events on an adorned element

I'm creating a drag and drop behavior, and the goal is to drag an item onto my grid, where a set of adorned elements representing the available actions will be available for the user to drop the element on. My problem is once I add the adorned element(s) to the AdornerLayer, I don't receive any Drag events. I need to get those events to ...