Все вопросы: [drag]
36 вопросов
Перетаскивание особенно большого спрайта вверх и вниз, как эффект прокрутки в COCOS2D
Я действительно зациклился на этом.Мое приложение находится в альбомной ориентации, и на одном экране я хотел, чтобы изображение с инструкциями было прокручиваемым.Я добавил это изображение как спрайт.Сначала я попытался получить эффект прокрутки, доступный с других сайтов, но вскоре я увидел, ч...
ActionScript 3 - обнаружение щелчка для увеличения или перетаскивания
Я использую ActionScript 3 и создаю программу просмотра изображений. На данный момент у меня есть следующие функциональные возможности, основанные на событии мыши "onClick": 1) При просмотре изображения нормального размера при нажатии отображается "увеличенное" изображение. 2) При просмотре ...
UIScrollView работает только в том случае, если дочерние представления не попадают
У меня есть представление с прокруткой, которое не прокручивается вправо, я упростил код, указанный ниже. Он рисует вид и несколько горизонтальных кнопок, которые я добавляю в настоящий код. Если вы перетащите пробел между кнопками, просмотр прокрутится.Если вы прикоснетесь пальцем к кнопке, она...
как перетащить анимацию в приложении iphone?
Приложение Iphone использует статические координаты для достижения некоторых точек в приложении, что основано на событии кнопки. Но то, что я хочу, - это когда я перетаскиваю элемент, чем он должен достичь в какой-то момент, где я его бросаю, и снова из точки перетаскивания он должен перемещатьс...
wx python карточная игра
Я знаю python и новичок в wx python, но хотел бы сделать карточную игру. Однако я понятия не имею, как заставить изображение следовать за мышью и помещать его в середину экрана во время работы программы.Было бы хорошо, если вы, ребята, можете мне помочь.
C #: Как перетащить объект из формы и ее элементов управления?
Я использую следующий код для перетаскивания формы без полей путем щелчка и перетаскивания самой формы.Это работает, но не тогда, когда вы щелкаете и перетаскиваете элемент управления, расположенный в форме.Мне нужно иметь возможность перетаскивать его при нажатии на некоторые элементы управлени...
Один щелчок при перетаскивании JTable
Извините, если об этом спрашивали раньше, я везде гуглил, но безуспешно. Вот моя проблема: я хотел бы перетаскивать строки в JTable. Я не могу заставить его работать, не выбрав сначала строку, что меня раздражает, я бы хотел получить то же поведение, что и проводник Windows: если я один раз щел...
How can i check if 2 controls overlap eachother on a canvas in WPF?
I am writing a designer that enables the user to drag controls around the screen. What would be the best way of detecting if a control is overlapping another control while i am dragging the one control around? Should i just get the dimensions of the FrameworkElement and keep on checking the dime...
how to drag and zoom big movieclips on flash? (like googlemaps - withouth the +- buttons)
that's about it. I want a big movieclip or image to be dragable around the screen like a map. i'm very new to actionscript so please be descriptive.
Dragging a copy of all selected elements from a select box--possible?
I have a picklist web interface: a pair of select elements with a pair of buttons (a left-pointing arrow and a right-pointing arrow) between them. Users can move items between the two columns by, eg, selecting one of options in the left column and clicking on the right-pointing arrow. Now I hav...
How to drag a UserControl inside a Canvas
I have a Canvas in which user can add UserControl subclasses containing a form. User should be able to drag these UserControl around the Canvas. What's the best practice to do this with WPF?
Draw a triangle using mouse drag (how can I move the previous drawn triangle using mouse drag)
How to move a triangle to a new location using mouse drag (which was previous drawn using mouse drag)? ... java.util.List<Polygon> triangles = new LinkedList<Polygon>(); Point startDrag, endDrag, midPoint; Polygon triangle; ... public PaintSurface() { this.addMouseListener(new...
jQuery dragging divs selected text
I'm using jquery to make a few divs draggable on a website. My code is similar to this: $("#thediv").bind('mousedown',function(){ $(document).bind('mousemove',function(ms){ //drag }) }); The problem is that if the mouse is too fast for the div, the mouse goes outside of the div. ...
WPF: How to draw a circle and drag it around?
I am new to WPF. I want to draw a small circle on Canvas when I click mouse and be able to drag it around smoothly. How can I accomplish this?
WPF : GridViewColumn.Header drag (reorder) problem
In my WPF Application I have an GridViewColumn that looks like this: <GridViewColumn Width="170"> <GridViewColumn.Header> <StackPanel Orientation="Horizontal"> <Path Data="{StaticResource pathStar}" Fill="Gold" Stroke="Red"/> <TextB...
unable to drag jquery
I am using this function for drag and drop. Calling this function onmousedown event. It does not work when I do mouse down for the first time but it works perfectly fine from the second mouse down event. How can I make it work for the first time? function DivMouseDown(id) { alert("id:" +id)...
Resizable DIV only horizontally
I need a plugin to resize a DIV vertically just use jQuery ( not jq UI ). here is a sample of the HTML : <div class="wrapper" style="width:300px; height:300px; padding:50px; border:1px solid black;"> <div class="resizable" style="height:300px; width:150px; background:green;float:le...
Two divs 50% each. Make middle draggable to make bigger or smaller
Alright everyone, is there a way to have 2 divs taking up 50% of the screen and have a bar in the middle so you can drag it and make the left 40% and the right 60% and vice versa. I hope to be able to do this jquery.
WPF - how to best implement a panel with draggable/zoomable children?
I'm trying to modify the default graph viewer of the Graph# library because its user interface is awful (just try dragging a node outside of the boundaries, you'll see!) The basic setup is this: there is a GraphCanvas control (inherited from Panel) which has children of Vertex and Edge control t...
Which API can be used to _capture_ the mouse when moving OS X "Carbon" windows?
On request I have implemented support for moving an OS X window by dragging it using an area within the content part of the window, i.e replicating the drag and move functionality of the title bar but in another area. The problem I have yet to resolve is the fact that if the user drags the mous...
How do you recognize drag gestures
I have several buttons in my view built using IB. Each button triggers a short audio sound. I want to be able to drag my finger over them to trigger them... just like you are dragging your finger over piano keys (don't worry I am not making a piano app) I cant figure out how to recognize a touc...
WPF Listbox auto scroll while dragging
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 d...
Slow Canvas Element
Using the Canvas element, I draw a line from one element to another element Another element is draggable, and when dragging the element the line follows the draggable element. My problem is that the rendering apears slow (Fx 3.5 on a Mac PowerBook) I think I have seen much better performance in...
jquery drag element
i have a problem that i cant understand what to pass in the draagable function to make an elemnt draagable. I want to make my draggable through its id test. Can anyone tell me how to do this. Code Sample normal_tag11=' <div style="position:fixed" id="Normal_Tag1_div_dummy'+count1+'" class =...
Conflicting startDrags
Flash CS4, AS2 I'm making a tour with a map. I'm using this startDrag code to move the map around: menu.onPress = function() { this.startDrag(); }; menu.onRelease = function() { stopDrag(); }; This works perfectly. However, inside the "menu" movieclip I am using a hover tag startDrag...
Drag rectangle on JFrame in Java
I want to draw rectangle based on mousedrag event. if user dragging the mouse, then the rectangle on the applet should increase or decrease basing on current mouse coordinates. i have the following code. in the following code i am using SelectionArea class which extends a canvas on which i am pe...
Сбой при перетаскивании форм в Delphi и Vista
Мне интересно, есть ли у вас способ решения проблем с закреплением форм в Vista, таких как частично скрытая кнопка закрытия и серая граница при перетаскивании, очень медленная рендеринг, что создает / исчезает вид?> Delphi 2007 и Vista (64-разрядная версия)
Блокировка перетаскивания формы Delphi
Создайте приложение Delphi 2007, TForm в качестве главного окна. Запустить приложение. Попробуйте перетащить форму, используя строку заголовка. Отладчик показывает нескончаемый поток сообщений об ошибках, жалуясь, что не может найти какую-то безымянную процедуру. Escape и Break не работают. Салю...
Запуск перетаскивания мышью в пользовательском интерфейсе jQuery
Используя jQuery 1.2.x и jQuery UI 1.5.x, можно было запускать перетаскивание вручную следующим образом: jQuery("#myDiv").mousedown(function(ev) { target = jQuery(ev.target); if (target.hasClass("drag-me")) { target.draggable({ helper: "clone", start: function() { ...
Перетащите форму WPF по рабочему столу
Я пытаюсь создать форму C # WPF, в которой я могу перетаскивать ее по экрану, щелкая по ней и перемещаясь с помощью мыши. Характеристики форм включают в себя то, что они полностью прозрачны и содержат только одно изображение. При этом стиль окна отсутствует, и он не отображается на панели задач....