drag-and-drop

Dragging files into other applications in cocoa OSX

╄→尐↘猪︶ㄣ 提交于 2020-01-05 05:37:06
问题 I'm trying to convert a windows application into OSX, everything is working now, except this small feature, the drag&drop of files from my app into any other window that supports drops. Receiving drops it's easy, the problem is being the source of the data to drag. My application only has 1 window with 1 view, I draw every control myself in there. So I simply extended my view like this @interface NativeView : NSView <NSDraggingSource, NSPasteboardItemDataProvider> . Now the resto of the code

How to drag and drop content with react?

最后都变了- 提交于 2020-01-05 05:31:08
问题 I need to render the content from this div: <div class="col-sm-4"> <ul class="list-group"> <li class="list-group-item"><a href="#">File Reader</a></li> <li class="list-group-item" ><a href="#">File Move</a></li> <li class="list-group-item" ><a href="#">Data Base</a></li> <li class="list-group-item"><a href="#">SAP R3</a></li> <li class="list-group-item"><a href="#">FTP</a></li> <li class="list-group-item"><a href="#">SOAP</a></li> <li class="list-group-item"><a href="#">Rest</a></li> <li

how to drag image in a wxpython frame

对着背影说爱祢 提交于 2020-01-04 20:25:38
问题 what is the easiest way to drag an image ( or text) in a wx window ? i need steps or a small example on how to do that. thanx in advance 回答1: Take a look at the PseudoDC example in the wxPython demo. The sample displays some random shapes within the window which you can grab and move around, you should be able to apply the concepts for an image. You can download the win32-docs-demos from here 回答2: Install wxpython demos, there is DragImage demostration in it. 来源: https://stackoverflow.com

how to drag image in a wxpython frame

喜欢而已 提交于 2020-01-04 20:24:34
问题 what is the easiest way to drag an image ( or text) in a wx window ? i need steps or a small example on how to do that. thanx in advance 回答1: Take a look at the PseudoDC example in the wxPython demo. The sample displays some random shapes within the window which you can grab and move around, you should be able to apply the concepts for an image. You can download the win32-docs-demos from here 回答2: Install wxpython demos, there is DragImage demostration in it. 来源: https://stackoverflow.com

Drag and drop item in same ListView

天大地大妈咪最大 提交于 2020-01-04 13:43:58
问题 I have following ListView <ListView Name="listAccounts" Width="300" AllowDrop="True" SelectionMode="Single" CanDragItems="True" CanDrag="True" CanReorderItems="True" Background="{ThemeResource myBackground}" DragItemsStarting="listAccounts_DragItemsStarting" Drop="listAccounts_Drop"> and defined my event handlers as private void listAccounts_DragItemsStarting(object sender, DragItemsStartingEventArgs e) { e.Data.SetData("itemIndex", (e.Items[0] as AccountList).Text.ToString()); } private

HTML5 image drag event - ctrlKey remains false in Firefox 29

ぃ、小莉子 提交于 2020-01-04 08:08:52
问题 This works great in Chrome, but what do I need to change to make it work in Firefox? e.ctrlKey remains false in FF: $('img').on('drag', function(e){ console.log('ctrlKey', e.ctrlKey); }); http://jsfiddle.net/YF6UG/4/ 回答1: I think this is a bug in Firefox. After some digging in Bugzilla I found unconfirmed bug similar to your problem titled DragEnd event does not reflect real ctrl/shift/alt key status. 回答2: It seems you can detect the ctrlKey in startdrag event, so as a workaround, you can

HTML5 image drag event - ctrlKey remains false in Firefox 29

人盡茶涼 提交于 2020-01-04 08:07:10
问题 This works great in Chrome, but what do I need to change to make it work in Firefox? e.ctrlKey remains false in FF: $('img').on('drag', function(e){ console.log('ctrlKey', e.ctrlKey); }); http://jsfiddle.net/YF6UG/4/ 回答1: I think this is a bug in Firefox. After some digging in Bugzilla I found unconfirmed bug similar to your problem titled DragEnd event does not reflect real ctrl/shift/alt key status. 回答2: It seems you can detect the ctrlKey in startdrag event, so as a workaround, you can

ListView UWP Drag Reorder doesn't fire Drop events

青春壹個敷衍的年華 提交于 2020-01-04 07:03:53
问题 I am attempting to reorder a ListView in my UWP project. <ListView Grid.Row="1" Name="List" Margin="12, 0, 12, 0" ItemTemplate="{StaticResource ListDataTemplate}" SelectionMode="None" IsItemClickEnabled="True" ItemClick="List_ItemClick" AllowDrop="True" CanReorderItems="True" ReorderMode="Enabled" DropCompleted="List_DropCompleted" /> In Code behind: private void List_DropCompleted(UIElement sender,DropCompletedEventArgs args) { UseManualOrder = true; } The UI Works great. I can drag and

ListView UWP Drag Reorder doesn't fire Drop events

大兔子大兔子 提交于 2020-01-04 07:01:16
问题 I am attempting to reorder a ListView in my UWP project. <ListView Grid.Row="1" Name="List" Margin="12, 0, 12, 0" ItemTemplate="{StaticResource ListDataTemplate}" SelectionMode="None" IsItemClickEnabled="True" ItemClick="List_ItemClick" AllowDrop="True" CanReorderItems="True" ReorderMode="Enabled" DropCompleted="List_DropCompleted" /> In Code behind: private void List_DropCompleted(UIElement sender,DropCompletedEventArgs args) { UseManualOrder = true; } The UI Works great. I can drag and

Jquery Ui Drag and drop problem

不想你离开。 提交于 2020-01-04 05:58:17
问题 I´m developing a single toolbar plugin with jquery and drag and drop functionality from jquery ui. The idea is as follows: i have a list (ul) and items (li) where each of them represents a tool like text, geometric figure, etc. so. when i drag a tool and then drop it on the conteiner a 'widget' must be created. The problem is after the tool was dropped on container it is not longer available from drag and drop. Drag and drop functionality works just once. Hope you can helpme. Sorry for my