BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DragDrop vs. EndDrag

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Mauro
Guest





PostPosted: Mon Jul 28, 2003 5:17 pm    Post subject: DragDrop vs. EndDrag Reply with quote



Hi All,

In this both routines I can set the x and y coordinates of
the dragged object and assign a new parent to it.

But my question is, which method should I use, does it
no matter or yes ??

Thanks,
Mauro


Back to top
JD
Guest





PostPosted: Mon Jul 28, 2003 8:33 pm    Post subject: Re: DragDrop vs. EndDrag Reply with quote




"Mauro" <mauro23 (AT) gmx (DOT) de> wrote:
Quote:
[...] which method should I use, does it no matter or yes ??

It matters only if you want to do something like draging the
contents on a TEdit into a TMemo or if you're dragging
something to a different window. The OnDragDrop has as one of
it's parameters, the object that the dragged object was
dropped on.

~ JD


Back to top
Mauro
Guest





PostPosted: Mon Jul 28, 2003 8:39 pm    Post subject: Re: DragDrop vs. EndDrag Reply with quote



Hello JD,

your explanation is not correct,
because the OnEndDrag has also the parameter "Target", this is the
same as the parameter "Sender" in OnDragDrop.

So I was a little bit confused which routine is better.
I want to drag and drop some small Images in one window.

Nevertheless,
thank you.

Marius

"JD" <nospam (AT) nospam (DOT) com> schrieb im Newsbeitrag
news:3f258890$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Mauro" <mauro23 (AT) gmx (DOT) de> wrote:
[...] which method should I use, does it no matter or yes ??

It matters only if you want to do something like draging the
contents on a TEdit into a TMemo or if you're dragging
something to a different window. The OnDragDrop has as one of
it's parameters, the object that the dragged object was
dropped on.

~ JD




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.