drag-and-drop

Flash AS3 Clone, Drag & Drop

大憨熊 提交于 2020-01-06 01:36:09
问题 I am a teacher and with the help of some of you, I managed to create very basic word game for kids where they are able to create words from letters. SWF | FLA I have, however, been unable to continue to drag and drop the letters once they have been cloned from their originals on the side of the stage. Is anyone able to advise how I might be able to add this functionality to my existing code? import flash.display.MovieClip; for (var i=1; i<27; i++) { this["object" + i].addEventListener

QTableView external drag and drop

断了今生、忘了曾经 提交于 2020-01-05 15:15:47
问题 Is there a way to drag rows out of a QTableView? I know how to internally move columns within a QTableView by configuring some properties on the view: table_view_->horizontalHeader()->setSectionsMovable(true); table_view_->horizontalHeader()->setDragEnabled(true); table_view_->horizontalHeader()->setDragDropMode(QAbstractItemView::InternalMove); Going through the documentation on QAbstractItemView::DragDropMode , I intuitively expected my following attempt to allow external dragging of

GWT Drag and Drop File Upload not working

元气小坏坏 提交于 2020-01-05 13:43:30
问题 So I have implemented a very simple drag and drop file upload widget. Basically my widget is a vertical panel with a couple of labels and a button inside. The user can either drag file into vertical panel or click button and browse for file. My problem is that when I drag a file into the vertical panel it fires the DragLeaveEvent every time I drag the item over the space that the labels or button occupies. I want it to know that the item is in the vertical panel even when it is on top of the

Finding the end of a Drag and Drop operation in QAbstractItemView

对着背影说爱祢 提交于 2020-01-05 10:33:42
问题 I created custom proxy model inherited by QSortFilterProxyModel. My source model for the above mentioned proxy model is also a custom model inherited by QAbstractTableModel. Then I set my custom proxy model to a QTableView. In this custom proxy model, I reimplemented the mimeData(..) function. It is as follows. QMimeData* CustomProxyModel::mimeData( const QModelIndexList & rListIndexes ) const { QMimeData *pMimeData = new QMimeData(); //some code here connect(pMimeData, SIGNAL( destroyed

How to drag a label and drop on UIToolbarItem in iphone

梦想与她 提交于 2020-01-05 10:30:53
问题 I am facing problem to drag and drop UILabel . How to drag label(Move This) and drop on any one of UIToolBar item (i.e., 1 or 2 or 3 ...) that button title should change as label text. Check image for this question 回答1: Use custom button as a label and then use this code as : UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; [button addTarget:self action:@selector(btnTouch:withEvent:) forControlEvents:UIControlEventTouchDown]; button.tag = -1; button.titleLabel.text = @"Move

Somthing confused with ole drag and drop implementation [closed]

元气小坏坏 提交于 2020-01-05 08:23:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I wish to finish a little demo to implement OLE drag and drop(drag a file from my application to windows explorer). But here comes a problem:DoDragDrop return DRAGDROP_S_DROP which means the ole drag and drop operation has successfully done,but also get DROPEFFECT_NONE which means drop target cannot accept the

multiple file upload using html5 drag-and-drop fails as multiple files get same content

南楼画角 提交于 2020-01-05 08:12:51
问题 I need to transfer all the files dropped on an element to a server using HTML5 drag and drop. I provided the corresponding js code below. I have a servlet in the server side to collect the files and put it in a folder. This is working fine if I drop 1 or 2 files on the page. But, if i drop 4-10 files, all the files are getting created in the server but multiple files are set to same content and some files content is 0K. Can any of you please tell me how to achieve the correct behavior. My

multiple file upload using html5 drag-and-drop fails as multiple files get same content

做~自己de王妃 提交于 2020-01-05 08:12:18
问题 I need to transfer all the files dropped on an element to a server using HTML5 drag and drop. I provided the corresponding js code below. I have a servlet in the server side to collect the files and put it in a folder. This is working fine if I drop 1 or 2 files on the page. But, if i drop 4-10 files, all the files are getting created in the server but multiple files are set to same content and some files content is 0K. Can any of you please tell me how to achieve the correct behavior. My

How can I type text after dropped content

◇◆丶佛笑我妖孽 提交于 2020-01-05 06:32:30
问题 I'm using jQuery UI draggable component to add to content editable .This code works to find and I have little issues. The problem is when I dropped the draggable component as the last word of the paragraph. I cannot type text after that dropped component. and the second issue is, I need to disable contentEditable option from words (span with removable option), to achieve that I add this code ($('.b').attr('contentEditable', false);) inside $("p.given").blur event. It works fine. I need to do

Drag and drop batch file equivalent in Linux [closed]

时光毁灭记忆、已成空白 提交于 2020-01-05 05:45:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am currently able to run files through my python script via a .bat file. The contents of this batch file is simply: C:\Python26\python.exe mypythonfile.py %1 pause I can drag and drop various files onto the .bat file and the python script will execute, using the dropped file as the argument...using sys.argv