DelphiDrop allows the Delphi editor to accept text, URLs and files dropped from other applications, and to drag text to other applications (including itself). This plug-in additionally allows you to drag text onto Delphi forms, converting it to components (really amazing stuff).
This plug-in is similar to the FileDroppers plug-in that offers drag and drop functionality for CodeRush 6 and 7.
Please see the release notes included in the download link for more information about this plug-in.
DelphiDrop enhances the Delphi IDE by means of drag-and-drop operations.
Custom Options Page.
Custom HTML Help.
WHAT YOU CAN DO
You can drag text from a variety of sources into Delphi forms, creating controls. For example, you can drag and drop a URL from your browser onto a Delphi form, to create a URL-linked label (this is pretty cool).
You can also drag from formatted text or standard text to automatically create multi-control layouts. This feature is impressive.
When you drop Rich Text Format (RTF) data, e.g. from Microsoft Word, you can insert:
A TRichEdit containing that formatted content.
A TRichEdit formatted to look like a label, containing that formatted content (i.e., no text cursor or input, no border, transparent backgrount).
Since the design-time RTF would otherwise be converted to plain text at runtime for a standard TRichEdit, DelphiDrop provides the source code for TUORichEdit, a TRichEdit descendant that can persist its RTF even through changes in the window handle.
When you drop a device-independent bitmap (DIB), a device-dependent bitmap (DDB) or an enhanced metafile (i.e., just about any graphical content), you can insert:
A TImage containing the dropped graphic.
When you drop a URL from Internet Explorer or Netscape you can insert:
A blue, underlined TLabel with default cursor set to a pointing hand.
DelphiDrop also inserts an OnClick handler for the TLabel that calls ShellExecute to open the URL in your default browser (or e-mail client, for mailto: URLs, etc). In other words, drop a URL, and you get a fully-functional hyperlink label on your form!
When you drop one or more lines of Text you can insert:
One or more TLabels, arranged vertically.
A TEdit (for one line) or a TMemo (for multiple lines).
One or more TRadioButtons, arranged vertically.
One or more TCheckBoxes, arranged vertically.
One or more TButtons, arranged vertically.
A TListBox containing each of the dropped lines.
A dropdown list style TComboBox containing each of the dropped lines.
A TRadioGroup with a button for each of the dropped lines.
A TPageControl with a tab pages named for each of the dropped lines.
A TListView with column headers made from the first line, and list items for all other dropped lines. Tabs within dropped lines are assumed to designate columns.
HOW YOU USE THIS PLUG-IN
Drag text or other content from any application onto a form you're designing in the IDE, and you get a pop-up menu (see below) that allows you to choose how to interpret the dropped content. The dropped content is used to construct one or more components, which are parented by the form (or an appropriate a container control if you drop on one).
BUT WAIT! THERE'S MORE!
You can drag text from the IDE and drop it on an Explorer folder or the Windows desktop, making a DelphiDrop Snippet (.snp) file. Snippet files can be dragged to the IDE and either opened or (the default) inserted at the current cursor location. This means that DelphiDrop Snippet files allow you to use the desktop or an Explorer folder (or set of folders) as a simple drag and drop code snippet repository.
DelphiDrop also automatically registers the file extension .SNP as DelphiDrop Snippet File.
While the Delphi IDE as shipped can accept files, it will accept any file (including binary!) dropped on it, which is most likely not what you want! You can set up DelphiDrop to accept as many or as few types of files (based on the file extension). You can also optionally switch off DelphiDrop's dragging support and keep the built-in Delphi IDE text dragging. The DelphiDrop Options dialog appears below:
DelphiDrop automatically installs a menu on the main Delphi menu bar (Tools | DelphiDrop Options) and a CodeRush shortcut (Ctrl+Shift+D) to show its options dialog. If you don't like these defaults, open the options dialog using one of them (or the CodeRush command "uoddOptionsDialog"), disable the defaults, and set up your own in the usual CodeRush manner.
This plug-in was designed using DropMaster available from Raize Software.
Copyright 2004 Ackerson Software, All Rights Reserved.
Author: Jim O'Brien
Created: December 7, 1999
Plug-In Type: Standard
Options Page: Yes/Custom
This plug-in is NOT currently supported.
This plug-in is not the property of Developer Express; it is the sole property of its author. As such, Developer Express cannot be held liable for any incidental damages that may be related to the usage of this plug-in.