<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>see attached example, mix of 1) and 2) :-)<br>
</p>
<div class="moz-forward-container"><br>
<br>
-------- Forwarded Message --------
<table class="moz-email-headers-table" border="0" cellspacing="0"
cellpadding="0">
<tbody>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap">Subject:
</th>
<td>Re: drag and drop</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap">Date: </th>
<td>Tue, 30 Oct 2018 16:06:57 +0100</td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap">From: </th>
<td>Jean-Yves Gratius <a class="moz-txt-link-rfc2396E" href="mailto:jyg@gumo.fr"><jyg@gumo.fr></a></td>
</tr>
<tr>
<th valign="BASELINE" align="RIGHT" nowrap="nowrap">To: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:pd-list@lists.iem.at">pd-list@lists.iem.at</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>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.
</pre>
</div>
</body>
</html>