<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>5 Aug 2017 09:30:09 Z</lastBuildDate><pubDate>4 Aug 2017 10:17:39 Z</pubDate><description>Hi&#13;
&#13;
I want to drag 2 buttons onto a transparent image 600x600 using programmed drag and drop.&#13;
&#13;
I can see when I drag the button I see the cursor but it never Drops on the image.&#13;
&#13;
None of the events fire on the image as I try to trace them. The button event does fire.&#13;
&#13;
Ignoring the second button, the code on the first is:&#13;
&#13;
[code:wl]&#13;
&#13;
// initializing&#13;
BTN_Play_Intro..DndSource = dndProgram&#13;
// left mouse down&#13;
DnDEvent(OnStartDrag,BTN_Play_Intro,dndBeginDrag)&#13;
&#13;
&#13;
&#13;
&#13;
// initializing&#13;
IMG_Drop..DndTarget = dndProgram&#13;
&#13;
// Mouse Rollover&#13;
DnDEvent(Rollover,IMG_Drop,dndBeginDrag)&#13;
&#13;
// Mouse up &#13;
DnDEvent("Drop", IMG_Drop, dndDrop)&#13;
&#13;
[/code]&#13;
&#13;
[code:wl]&#13;
&#13;
PROCEDURE Drop()&#13;
Trace("Drop")&#13;
DnDAccept(dndMove)&#13;
&#13;
PROCEDURE OnStartDrag()&#13;
Trace("OnStartDrag")&#13;
DnDCursor(dndMove)&#13;
&#13;
PROCEDURE Rollover()&#13;
Trace("Rollover")&#13;
DnDCursor(dndMove)&#13;
&#13;
[/code]&#13;
&#13;
So I can't make it work which is a bit frustrating, ultimately I will drop and move lots of buttons on the image and use the wire control to connect them but need to get Drag &amp; Drop working first.&#13;
&#13;
Many Thanks in advance for your help.&#13;
&#13;
Tony</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62084-programmed-drag-drop-v22/read.awp</link><title>Programmed Drag &amp; Drop WD v22</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>tony.turner</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62084-programmed-drag-drop-v22-62097/read.awp</comments><pubDate>5 Aug 2017 09:30:09 Z</pubDate><description>Anyone have any simple example of programmed drag and drop on one object onto an image ?&#13;
&#13;
Thank you&#13;
&#13;
tony</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62084-programmed-drag-drop-v22-62097/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62084-programmed-drag-drop-v22-62097/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62084-programmed-drag-drop-v22/read.awp">Programmed Drag &amp; Drop WD v22</source><title>Re: Programmed Drag &amp; Drop WD v22</title></item></channel></rss>
