|
Mastering PowerBuilder Drag
and Drop
Drag
and Drop functionality allows you to create more user-friendly interface.
With this interface, instead of selecting a series of menu options,
user can drag the object and drop on to the required object. For example,
to print a document, user can drag the document and drop on the
printer icon, which will get printed. Similarly, dragging and
dropping the same document on a recycle bin will delete the
document. Whether you wrote the code to provide drag-n-drop
functionality or not, you are using this in your daily life.
Simple, example would be the File Manager. What you do to copy
files from one drive to another drive. You simply select the
files and drag them to the target drive. That's all.
 |
If you do
drag and drop files from one directory to another which
are on the same drive, Windows will move the files
instead of copying. The solution to this problem is,
press the Ctrl key and hold it down as you drag the
files.
If you drag and drop files between
directories under Windows '95, the files won't get
copied, instead, Windows creates links to the files in
the target directory. You need to copy and paste using
the right mouse button menu.
|
|