No offense TFE, but you don't seem to know the basics of Drag and Drop. Is 
there something wrong with your Delphi in that the help file won't load? Learn 
what the Accept variable is used for and you might start getting somewhere with 
it. You could set the new image position based on the X,Y variables in 
OnDragDrop, but if you haven't told it to allow the component you are dragging 
it will show the "No Drop allowed" cursor where you're trying to drag it. Of 
course we're just guessing as to what's going wrong because you dont bother to 
supply those details.

Dave


--- On Sat, 12/19/09, totallyfreeenergy <[email protected]> wrote:

From: totallyfreeenergy <[email protected]>
Subject: [delphi-en] Re: How to implement drag drop in VCL controls?
To: [email protected]
Date: Saturday, December 19, 2009, 4:16 PM







 



  


    
      
      
      This is for achieving drag to new position of a TImage object during 
runtime. I had captured the OnMouseDown with dragmode set to dk_manual. I had 
set the new X and Y position in the OnDragDrop event. Image1.BeginDrag( False, 
10) as suggested by David. It still doesn't work.



Regards

TFE,

http://totallyfreee nergy.zxq. net



--- In delphi...@yahoogrou ps.com, Robert Jenkins <uss...@...> wrote:

>

> I found a nice article related to drag and drop.  Here is the link:

> 

> http://www.delphida bbler.com/ articles? article=11

> 

> I hope this helps, if not let me know and I might can put together a demo to

> help understand it better.

> 

> Robert

> 

> On Sat, Dec 19, 2009 at 2:21 PM, totallyfreeenergy <

> totallyfreeenergy@ ...> wrote:

> 

> >

> >

> > It did not work ! I am using Delphi 7 on Windows XP SP3

> >

> > TFE





    
     

    
    


 



  






      

[Non-text portions of this message have been removed]

Reply via email to