 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mauro Guest
|
Posted: Mon Jul 28, 2003 5:17 pm Post subject: DragDrop vs. EndDrag |
|
|
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
|
Posted: Mon Jul 28, 2003 8:33 pm Post subject: Re: DragDrop vs. EndDrag |
|
|
"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
|
Posted: Mon Jul 28, 2003 8:39 pm Post subject: Re: DragDrop vs. EndDrag |
|
|
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 |
|
 |
|
|
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
|
|