QDrop: easy drag & drop that works (on 64-bit too)
QDrop's natural implementation of drag and drop has served well for many years. With 4D's later versions offering a drag and drop mechanism that could replace QDrop without loss of functionality, QDrop is no longer necessary.
What does it do?
QDrop offers a plug-in area that you can put on any 4D form and use as a drop zone. The plug-in area can be made big enough to cover the entire form window, or it can be placed behind specific form objects, other plug-in areas, and so on. QDrop can easily revamp those parts of a database that involve working with desktop files and folders.
When implemented in image databases and document management applications, QDrop adds simplicity and intuitiveness to standard operations such as importing files and folders into the database.
How does it work?
Each QDrop area can be configured to accept specific classes of files, using either filename extensions (on both platforms), or Uniform Type Identifiers (on macOS X). QDrop also provides two special constants (magic types) to denote any file or folders.
Visual feedback as a result of accepted drop actions is customizable by the developer (width, color, inset).
Once accepted drop types are configured, the QDrop area will automatically react to matching objects and also:
- users will get a visual feedback that the drop is accepted
- developers will receive a drop event to handle the drop action programmatically.