drag

Drag and drop cross domains, iframes, browsers windows

陌路散爱 提交于 2019-12-19 03:13:02
问题 Thanks stackoverflow i solved a lot of my javascript problems, but now i stopped at the point without hope. It is hard to describe, there is clear video shows my problem with drag drop cross-domains iframe. http://www.youtube.com/watch?v=v65mO27h75E First part in Iceweasel (and FF, Opera) = iframe d&d work OK. Second part in Chromium (and Chrome) = iframe d&d NOT work. and there are links to example iframes set and iframes sources: parent page: http:// msdrop.com/msdrop-jquery-test-iframe

Create a window using the WS_EX_NOACTIVATE flag ,but it can't be dragged until I release the mouse

南楼画角 提交于 2019-12-18 09:16:55
问题 I have created a window using the WS_EX_NOACTIVATE flag and it works great as far as not taking focus when you click the window. However when I drag the window or try to resize it, it doesn't redraw the window as your are moving and resizing it, only at the very end once you release the mouse button. Is there a way around this? I would like to see the window as I am resizing it. I have searched many documents, but I still don't find the resolution... 回答1: It's a Windows bug. You need to call

Android monkey runner: Touch with MOVE

懵懂的女人 提交于 2019-12-18 07:15:12
问题 I am trying to use monkeyrunner to simulate complex touch events. A swipe from a to b with... device.drag((300,500),(300,650),0.5,50) works great but a complex movement from a to b to c doesn't work trying with that device.touch(100,500, 'DOWN') device.touch(300,500, 'MOVE') device.touch(300,400, 'MOVE') device.touch(300,400, 'UP') Was seaching for a solution and found this.. https://android-review.googlesource.com/#/c/50991/ Is this already implemenet in the offical android sdk? or did i

Android monkey runner: Touch with MOVE

自作多情 提交于 2019-12-18 07:15:05
问题 I am trying to use monkeyrunner to simulate complex touch events. A swipe from a to b with... device.drag((300,500),(300,650),0.5,50) works great but a complex movement from a to b to c doesn't work trying with that device.touch(100,500, 'DOWN') device.touch(300,500, 'MOVE') device.touch(300,400, 'MOVE') device.touch(300,400, 'UP') Was seaching for a solution and found this.. https://android-review.googlesource.com/#/c/50991/ Is this already implemenet in the offical android sdk? or did i

How to select multiple controls by mouse-dragging over them

老子叫甜甜 提交于 2019-12-18 05:11:49
问题 I want to be able to drag over a bunch of controls and select those of a certain type (TextBoxes). Once the dragging action has been completed, I want to display an inputbox (yes, I'll have to reference/use the VB .dll) prompting the user for the value that will be entered in each selected TextBox. Can this be done? (of course, but how?) Or is there another way to accomplish the same thing (allow the user to quickly select multiple controls and then perform an action on all of them at once)?

WPF Listbox auto scroll while dragging

南笙酒味 提交于 2019-12-17 23:17:33
问题 I have a WPF app that has a ListBox . The drag mechanism is already implemented, but when the list is too long and I want to move an item to a position not visible I can't. For example, the screen shows 10 items. And I have 20 items. If I want to drag the last item to the first position I must drag to the top and drop. Scroll up and drag again. How can I make the ListBox auto scroll? 回答1: Got it. Used the event DragOver of the ListBox , used the function found here to get the scrollviewer of

How to move form without form border (visual studio)

醉酒当歌 提交于 2019-12-17 19:09:39
问题 I am making a windows form application in visual studio 2013 Express. In order to make the application look more customized and attractive, I designed the forms in my application. I set the form border style to 'NONE' and made my own title and exit/min/max buttons. HOWEVER, the only way to move the form at runtime is by dragging the title bar, and I cannot do this with the form border and title bar gone. So, is it possible to move the form without the title bar and border. Maybe if I have my

how to use correct dragging of a view on android

时间秒杀一切 提交于 2019-12-17 18:44:24
问题 it seems that there are a lot of solutions of how to use dragging of views on android . however, they are either too slow or buggy. a known solution is to have a framelayout , and the view simply changes its layoutParams as it moves using the OnTouchListener ,as described here: http://www.anddev.org/novice-tutorials-f8/android-drag-and-drop-of-normal-views-not-bitmaps-t13404.html however, if the view is an imageView , when reaching the most right (or most bottom) side of the framelayout , the

wpf datagrid drag row on Icollectionview which bind to collection

笑着哭i 提交于 2019-12-13 18:31:24
问题 I have a datagrid like this _productsPosition = new ObservableCollectionEx<NotifiedPositionInfo>(); _itemSourceList = new CollectionViewSource() { Source = _productsPosition }; _itemSourceList.Filter += new FilterEventHandler(FilteringProduct); PositionsGrid.ItemsSource = _itemSourceList.View; and when I try to drag row on this datagrid, i can obtain the index of row on the collectionview. But this index can not help me get the same element in the collection _productsPosition, because the

Drawing lines by dragging the mouse in matlab

二次信任 提交于 2019-12-13 18:22:01
问题 I want to draw a set of disconnected lines on top of an image by dragging the mouse while pressing the left button. However, if I click on a previously drawn line to specify the starting point of the next line, the callback function is not being called and I don't get the point. Here is my code: function main_test S.fH = figure('menubar','none'); im = imread( 'image.jpg' ); S.aH = axes; S.iH = imshow( im ); hold on axis image; X = []; Y = []; set(S.aH,'ButtonDownFcn',@startDragFcn) set(S.iH,