[PD] Fwd: Re: drag and drop
Lucas Cordiviola
lucarda27 at hotmail.com
Tue Oct 30 18:18:40 CET 2018
We are are almost ready for a deken release.
Anyone wanting to test:
download from : https://github.com/Lucarda/pd-dnd-plugin/tree/update-v02
non osx users don't copy the "tkdnd" folder. (on the git we don't supply the linux or windows tkdnd)
Suggestions welcomed.
Mensaje telepatico asistido por maquinas.
On 10/30/2018 1:57 PM, Jean-Yves Gratius wrote:
see attached example, mix of 1) and 2) :-)
-------- Forwarded Message --------
Subject: Re: drag and drop
Date: Tue, 30 Oct 2018 16:06:57 +0100
From: Jean-Yves Gratius <jyg at gumo.fr><mailto:jyg at gumo.fr>
To: pd-list at lists.iem.at<mailto:pd-list at lists.iem.at>
Hello,
In response to your problem about scrolled window :
1) you should put an iemguts/canvasreceive object in your main patch
and wait for the first motion event it delivers after you received a
dnd-dropped message (assuming you will move a bit the mouse after
dropping down). This way, you get the correct coordinates in the patch,
may the window be scrolled or not.
2) you should put a bang gui-object in your gop abstraction. Then,
receiving global dnd-dropped msg will "arm" it, and you'll have to click
to the gui-bang to confirm the operation. It's not pure "drag and drop"
but it is a vanilia approach, and you don't have to calculate about gop
coords and margins. Just wait for a click on a bang button.
_______________________________________________
Pd-list at lists.iem.at<mailto:Pd-list at lists.iem.at> mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20181030/d1c494fd/attachment-0001.html>
More information about the Pd-list
mailing list