drag-and-drop

Drag Fabric.js object from one canvas to another

左心房为你撑大大i 提交于 2019-12-22 08:29:26
问题 I am using Fabric.js to create design on any product. my some product has two canvas so I want to move fabric.Text from one canvas to another and I want to drag and drop Fabric canvas object to other Fabric canvases. 回答1: I have absolutely no idea whether this is a good, bad or ugly way of doing things however I've put together a simple fiddle which achieves what you are after - the basic principle of what i've done is this: encapsulate your canvas objects within an object, where the canvas

Drag and drop from an email file attachment in GroupWise to a .NET application

醉酒当歌 提交于 2019-12-22 08:16:08
问题 I'm trying to allow an attachment from an email open in Novell GroupWise to be dropped into my C# WinForms application. The standard .NET functionality doesn't work. In the DragDrop event of a control, e.Data.GetFormats() returns the following. FileGroupDescriptorW FileGroupDescriptor FileContents attachment format I can get the filename with e.Data.GetData("FileGroupDescriptor") and going to position 76. Unfortunately, e.Data.GetData("FileContents") causes a first chance System

Drag and drop from an email file attachment in GroupWise to a .NET application

走远了吗. 提交于 2019-12-22 08:15:09
问题 I'm trying to allow an attachment from an email open in Novell GroupWise to be dropped into my C# WinForms application. The standard .NET functionality doesn't work. In the DragDrop event of a control, e.Data.GetFormats() returns the following. FileGroupDescriptorW FileGroupDescriptor FileContents attachment format I can get the filename with e.Data.GetData("FileGroupDescriptor") and going to position 76. Unfortunately, e.Data.GetData("FileContents") causes a first chance System

IE8: drag'n'drop files to a webpage

那年仲夏 提交于 2019-12-22 07:39:42
问题 Is it possible in IE8 without using third party plugin like Java? 回答1: Short answer : no Long answer : how to determine the presence of HTML5 drag’n’drop file upload API 回答2: That's a standard HTML5 feature, only supported by Chrome 4+ and Firefox 3.6+ so far. But as for IE8, expect it to be included (and working properly) by the next millenium. 来源: https://stackoverflow.com/questions/2652780/ie8-dragndrop-files-to-a-webpage

RXJS Drag n drop

空扰寡人 提交于 2019-12-22 07:37:58
问题 This questions relates to RXJS. I'm trying to adapt the drag and drop example in github to work for a class of divs not just a single element ID. https://github.com/Reactive-Extensions/RxJS/blob/master/examples/dragndrop/dragndrop.html simple changes to give the div a class nor an ID dont work and i lose ability to drag the element 3 simple changes: HTML line 7 i.e. <div class="dragTarget">Drag Me!</div> CSS line 1 i.e. .dragTarget { style attributes unchanged } JS line 4 i.e var dragTarget =

Passing data around with QMimeData in Qt drag and drop

孤者浪人 提交于 2019-12-22 06:45:06
问题 I'm trying to understand how data gets passed around when using drag and drop in Qt. From what I understood from the examples I've been studying, you first define a widget as draggable by overriding methods inherited through QWidget . In the implementation of the overridden method, the examples I've been looking at instantiate a pointer to a QMimeData object, and store information in it by calling setText(const QString &text) and setData(const QByteArray &data) . They store information in the

Move object in ViewportControl WP8

北城余情 提交于 2019-12-22 05:13:39
问题 I'm using the ViewportControl to scroll around and zoom in and out of my Map. In this map I've got a green ellipse which I wish to move around. Previously I used a ScrollViewer where I set the manipulationMode of the ScrollViewer to control, and thus making it capable of moving my ellipse around. However I can't find a similar way for the ViewportControl. So is there a way to move my ellipse around? The code I've got so far is: The xaml part where I have my ViewportControl around my map

Handle file drop in TShellListView descendant

谁说胖子不能爱 提交于 2019-12-22 04:56:41
问题 I am attempting to create a descendant of TShellListView that accepts files dropped from Windows Explorer. I want to handle the drag/drop in my component definition without having to implement it in any of the applications that use the component (I've found examples of accepting files dropped from Windows Explorer, but all at the application / TForm level). I'm calling DragAcceptFiles() in my constructor, and I've defined a message handler for WM_DROPFILES. However, when I use this component

Drag and drop from within a NSOutlineView

孤人 提交于 2019-12-22 04:35:23
问题 I'm trying to figure out how to implement drag and drop from within a NSOutlineView to itself. For example, I want the user to be able to reorder and nest and re-nest the items in the NSOutlineView, but I don't need to be able to drag items from any other source (like files or from another view). All the examples I can find deal with dragging item into the NSOutlineView, not just within itself and seem overly complex. I assume this is possible. Can someone point be to some docs that deal with

How to implement GMSMarker drag drop on GMSMapView?

自闭症网瘾萝莉.ら 提交于 2019-12-22 04:14:35
问题 I set the marker on google map but when i drag it's all of map are drag. I want drag marker when click and drag on it's and drag map when click and drag outside marker. this is my code self.camera = [GMSCameraPosition cameraWithLatitude:-33.86 longitude:151.20 zoom:6 bearing:0 viewingAngle:0]; self.Map = [GMSMapView mapWithFrame:self.MapView.bounds camera:self.camera]; self.Map.myLocationEnabled = YES; self.Map.delegate = self; GMSMarker *marker = [[GMSMarker alloc] init]; marker.position =