Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Question about Drag and Drop
Question about Drag and Drop [message #47003] |
Wed, 19 October 2016 10:41 |
frankdeprins
Messages: 99 Registered: September 2008 Location: Antwerp - Belgium
|
Member |
|
|
Hello,
When I choose to use the DND_EXACTIMAGE flag in a call to DoDragAndDrop, how can I make a visual difference between a DND_COPY and a DND_MOVE operation?
Would it not be better to have an overloaded version of this function, accepting two images (or even three, one more for the 'no drop allowed')?
Or do I overlook something?
Regards
Frank De prins
[Updated on: Wed, 19 October 2016 13:00] Report message to a moderator
|
|
|
|
Re: Question about Drag and Drop [message #47009 is a reply to message #47008] |
Fri, 28 October 2016 09:11 |
frankdeprins
Messages: 99 Registered: September 2008 Location: Antwerp - Belgium
|
Member |
|
|
Well, I must say I preferred the first one.
I already tried it out, locally (only for Windows, though) and what I did was:
Change the current version with one image to 3 images and change the code to use the right image for each of the 3 actions.
Add a new version with one Image (conform to the old, unmodified, one) that just calls the modified one with 3 times the same image. That way, old code is not broken.
I think having 3 images gives the most flexibility.
I attached a patch file to show my mods.
-
Attachment: d&d.diff
(Size: 2.56KB, Downloaded 168 times)
[Updated on: Fri, 28 October 2016 09:25] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Sat May 11 11:28:11 CEST 2024
Total time taken to generate the page: 0.02045 seconds
|