Shortcuts are support by this component!
inherited properties |
Click here |
CompleteFileList published |
Here you can determine, if the FileList should be automaticly completed or not on calling Execute and CopyToClipBoard. This was added the increase the performance on some actions. |
FileList public |
Attention: FileList is a instance of TFileList! For Target: Use this list in OnProcessDropped, if you want to get the dropped files. |
NeedValid published |
Here, you can determine, if the Drag&Drop data must have a filename (set includes nvFilename) or pidl (set includes nvPIDL). This property applies to receiving AND transmitting data. For Source: Only if the pidls are available, you can make a shortcut ie. to the desktop! |
inherited events |
Click here |
inherited methods |
Click here |
Execute public |
Call this method, if you detect that the user wants to start a d&d-operation (i.e.: MouseDown+MouseMove). -> FileList
For drag detection you can also use the inherited property AutoDetectDnD or the method StartDnDDetection. If you are using a grid, check the section "Known Bugs" in the docu of the TDragDrop component. |
You add items to the list with the function AddItem (or AddItemEx, if you want to use mapped filenames). The function make itself a copy of the pidl (absolute needed!) to relieve you of this dirty job. If you don't know the pidl, set the parameter to nil. If you don't know or have the filename (including the whole path), set this parameter to a emtpy string.
You can delete items or clear as common to lists. You needn't care about releasing resources - the TFileList cares about itself!
Besides, there are the functions RenderPIDLs and RenderNames. RenderPIDLs trys to get the according pidls to the filenames in the list. RenderNames trys to get the according filenames (including full path) to the pidls in the list. If the functions succeed the result is true else false. You need not to call them before a d&d operation. This will be automaticly done by the component itself, if you set the property CompleteFileList to true. But it may be useful to call them after receiving datas to complete the list.
© 1998 by Dieter Steinwedel