I'd like to use an example to get this straight:
I'm using an application with a window with a StringGadget (txtBaseDir).
Here I want an easy way to get a path to a file or folder.
Therefore I use:
Code:
EnableGadgetDrop(txtBaseDir, #PB_Drop_Files, #PB_Drag_Move)
Now I drag some folder from Konqueror onto the StringGadget.
As Konqueror is where I got the folder from, I consider it to be the
source, right?
The target then would be my StringGadget.
(As it is the place I drag the folder to)
In the eventloop I evaluate a #PB_Event_GadgetDrop to my StringGadget
and execute some procedure.
In this case I do not want the folder to be deleted.
(It does not get deleted.)
But if I wanted the source file to be deleted, I would need to code the act of deletition like
Code:
DeleteFile()
somewhere in my target procedure.
As here is also the only place, where I know when I don't need the source anymore.
Quote:
I just thought of something that can probable make my point clear:
I'm using another PB application that contains file paths in a ListIconGadget.
I can drag them from there (my app being source) to the trash.
The trash now considered target.
Nowhere in this source app have I coded any deletion or such!
But files dragged from here to the trash, do get moved to the trash.
This is fact.
Unless you come up with an alternative way to define source and target,
the help text is wrong.