JVCL Help:TJvDropTarget
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TJvDropTarget Class
[+] JvDragDrop.pas Classes
[+] TJvDropTarget Events
[+] TJvDropTarget Methods
[+] TJvDropTarget Properties
Search in JVCL Help
Search in all projectsClass Hierarchy
TJvDropTarget
run\JvDragDrop.pas
Summary
Enables a control to accepts dropped files.
Pascal
run\JvDragDrop.pas
TJvDropTarget = class(TJvComponent, IDropTarget);
Description
- JVCLInfo
Use TJvDropTarget to enable a control to accept dropped files.
To use a TJvDropTarget, do the following:
- Drop a TJvDropTarget component on a form.
- SetControl to the control that should accept dropped files.
- Set property AcceptDrag to true; this means that now the control accepts dropped files.
- Write an OnDragDrop event handler, that will respond when the user drops files on the drop target. Use the methods of the component in the event handle, to retrieve the file names, content etc. of the dropped files.
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page