Board index » delphi » Drag'n'Drop and DragImages

Drag'n'Drop and DragImages

Hi to all!
Although I fell I understand how to drag and drop controls, I still
can't figure out how to have my prog move the control (or an image)
around dunring the dragging. I've tried to set left and top in
OnDragOver, but it is slow and fails when the mouse cursor is above
the dragged element.

Plus I don't understand anything from the help files (TDragImages
list, etc). What does "overloading virtual methods for dragobject and
dragimages" mean ?

Thanks for any input !
Damien.

 

Re:Drag'n'Drop and DragImages


overloading means that you can add some additional functionality to it.
usually you create a function/procedure of  the same name that already
exist that you would like to take control of..
 after that point, all calls to that same function will call your call
and your function thus calls the original..
Quote
Damien wrote:
> Hi to all!
> Although I fell I understand how to drag and drop controls, I still
> can't figure out how to have my prog move the control (or an image)
> around dunring the dragging. I've tried to set left and top in
> OnDragOver, but it is slow and fails when the mouse cursor is above
> the dragged element.

> Plus I don't understand anything from the help files (TDragImages
> list, etc). What does "overloading virtual methods for dragobject and
> dragimages" mean ?

> Thanks for any input !
> Damien.

Other Threads