#14726: Issue in drag and drop text

12 views
Skip to first unread message

wxTrac

unread,
Oct 5, 2012, 6:18:33 AM10/5/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14726>

#14726: Issue in drag and drop text
---------------------------------+------------------------------------------
Reporter: agrawal.raj | Owner:
Type: defect | Status: new
Priority: critical | Milestone:
Component: wxOSX (any toolkit) | Version: 2.9-svn
Keywords: drag and drop | Blockedby:
Patch: 0 | Blocking:
---------------------------------+------------------------------------------
Hi,

I want to drag and drop text in file. For this I have found a sample
application named as dnd (wxWidgets/sample) in c++. After running the same
application I have found that whenever I drag and drop ( with or without
pressing ctrl key), copy image only come. I never get move image.
On linux it is working fine but on mac I am getting above issue. Please
assist me to solve this.

Thanks


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14726>

wxTrac

unread,
Oct 5, 2012, 6:39:30 AM10/5/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14726#comment:1>

#14726: Issue in drag and drop text
---------------------------------+------------------------------------------
Reporter: agrawal.raj | Owner:
Type: defect | Status: infoneeded_new
Priority: normal | Milestone:
Component: wxOSX (any toolkit) | Version: 2.9-svn
Keywords: drag and drop | Blockedby:
Patch: 0 | Blocking:
---------------------------------+------------------------------------------
Changes (by vadz):

* priority: critical => normal
* status: new => infoneeded_new


Comment:

Are you dragging to or from the dnd sample? And do you drag text or file?

Please describe the steps needed to reproduce the problem exactly.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14726#comment:1>

wxTrac

unread,
Oct 5, 2012, 6:52:41 AM10/5/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14726#comment:2>

#14726: Issue in drag and drop text
---------------------------------+------------------------------------------
Reporter: agrawal.raj | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxOSX (any toolkit) | Version: 2.9-svn
Keywords: drag and drop | Blockedby:
Patch: 0 | Blocking:
---------------------------------+------------------------------------------
Changes (by agrawal.raj):

* status: infoneeded_new => new


Comment:

Replying to [comment:1 vadz]:
> Are you dragging to or from the dnd sample? And do you drag text or
file?
>
> Please describe the steps needed to reproduce the problem exactly.


I am dragging and drop inside the application. I am dragging the text.
Steps are:
1. Build and run the dnd sample application.
2. You just drag the text and move to above the mouse above where you want
to drop.You will see that you will get the copy image but you should get
move image.

Please let me know if you could not reproduce at you end.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14726#comment:2>

wxTrac

unread,
Oct 28, 2012, 8:59:04 PM10/28/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14726#comment:3>

#14726: Impossible to select whether to copy or move in dnd operations under OSX
---------------------------------+------------------------------------------
Reporter: agrawal.raj | Owner:
Type: defect | Status: confirmed
Priority: normal | Milestone:
Component: wxOSX (any toolkit) | Version: 2.9-svn
Keywords: drag and drop | Blockedby:
Patch: 0 | Blocking:
---------------------------------+------------------------------------------
Changes (by vadz):

* status: new => confirmed


Comment:

The text is indeed always copied. But then I don't even know how are you
supposed to select whether it should be moved or copied under OS X,
pressing Control or Cmd key doesn't seem to change anything so does
anybody know how do you select, from the user point of view, between these
operations?


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14726#comment:3>

wxTrac

unread,
Oct 29, 2012, 8:13:09 PM10/29/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14726#comment:4>

#14726: Impossible to select whether to copy or move in dnd operations under OSX
---------------------------------+------------------------------------------
Reporter: agrawal.raj | Owner:
Type: defect | Status: confirmed
Priority: normal | Milestone:
Component: wxOSX (any toolkit) | Version: 2.9-svn
Keywords: drag and drop | Blockedby:
Patch: 0 | Blocking:
---------------------------------+------------------------------------------

Comment(by robind):

I don't know if dragging text follows the same pattern, but for dragging
files the Option (alt) key is usually used to indicate a Copy operation,
and without the option key it will move.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14726#comment:4>

wxTrac

unread,
Oct 30, 2012, 1:06:14 AM10/30/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14726#comment:5>

#14726: Impossible to select whether to copy or move in dnd operations under OSX
---------------------------------+------------------------------------------
Reporter: agrawal.raj | Owner:
Type: defect | Status: confirmed
Priority: normal | Milestone:
Component: wxOSX (any toolkit) | Version: 2.9-svn
Keywords: drag and drop | Blockedby:
Patch: 0 | Blocking:
---------------------------------+------------------------------------------

Comment(by agrawal.raj):

Yes, dragging text also follow the same pattern.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14726#comment:5>

wxTrac

unread,
Nov 4, 2012, 4:12:19 PM11/4/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14726#comment:6>

#14726: Impossible to select whether to copy or move in dnd operations under OSX
---------------------------------+------------------------------------------
Reporter: agrawal.raj | Owner:
Type: defect | Status: confirmed
Priority: normal | Milestone:
Component: wxOSX (any toolkit) | Version: 2.9-svn
Keywords: drag and drop | Blockedby:
Patch: 0 | Blocking:
---------------------------------+------------------------------------------

Comment(by vadz):

I can reproduce it. I don't know enough about drag and drop under OS X to
see what is the problem here however unfortunately.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14726#comment:6>

wxTrac

unread,
May 27, 2015, 12:21:02 PM5/27/15
to wx-...@googlegroups.com
#14726: Impossible to select whether to copy or move in dnd operations under OSX
----------------------------------+---------------------------
Reporter: agrawal.raj | Owner:
Type: defect | Status: confirmed
Priority: normal | Milestone:
Component: wxOSX (any toolkit) | Version: stable-latest
Resolution: | Keywords: drag and drop
Blocked By: | Blocking:
Patch: 0 |
----------------------------------+---------------------------

Comment (by Dimitri Schoolwerth <dimitri@…>):

In [changeset:"f40e8bff6969ab283cf58080a073c4ec5a90a5d8/git-wxWidgets"]:
{{{
#!CommitTicketReference repository="git-wxWidgets"
revision="f40e8bff6969ab283cf58080a073c4ec5a90a5d8"
Fix mouse cursor not changing on OS X during DND

The cursor almost always looks like the one used for copying. Add
missing breaks in a switch statement to fix this.

See #14726.
}}}

--
Ticket URL: <http://trac.wxwidgets.org/ticket/14726#comment:7>

wxTrac

unread,
May 27, 2015, 12:21:06 PM5/27/15
to wx-...@googlegroups.com
#14726: Impossible to select whether to copy or move in dnd operations under OSX
-----------------------------+---------------------------------------------
Reporter: agrawal.raj | Owner: Dimitri Schoolwerth <dimitri@…>
Type: defect | Status: closed
Priority: normal | Milestone:
Component: wxOSX (any | Version: stable-latest
toolkit) |
Resolution: fixed | Keywords: drag and drop
Blocked By: | Blocking:
Patch: 0 |
-----------------------------+---------------------------------------------
Changes (by Dimitri Schoolwerth <dimitri@…>):

* owner: => Dimitri Schoolwerth <dimitri@…>
* status: confirmed => closed
* resolution: => fixed


Comment:

In [changeset:"3f94084e299eb48403f6e6b7692c03cfb9f70b2a/git-wxWidgets"]:
{{{
#!CommitTicketReference repository="git-wxWidgets"
revision="3f94084e299eb48403f6e6b7692c03cfb9f70b2a"
Add DND move support on OS X

The drag mask passed by Cocoa is conservative and doesn't include
NSDragOperationMove which was added later. Override
draggingSourceOperationMaskForLocal to include that flag if it's wanted.

This also moving of text the default behaviour.

Closes #13819.
Closes #14726.
}}}

--
Ticket URL: <http://trac.wxwidgets.org/ticket/14726#comment:8>
Reply all
Reply to author
Forward
0 new messages