Home

Basics
Overview
Menus
Toolbar
Tree
Code Editor
Search Frame
Change History

Intermediate
Add/Delete
Keywords
Search Lists
Date/Time
Shortcut Keys
Custom Icons
HTML Export
Hyperlinks
Drag & Drop
Bookmarks
Macros
Printing
Fonts
Hex View
Easter Eggs

Advanced
Revision Control
Object Storage
Language Def
Remote Folders
Server Sync
Online Search
Import Code
gbFlashLib

Forums
Announcements
Questions
Suggestions

Personal
Webcam
Biography
Contact Me

GBIC >> gbWare >> gbCodeLib >> Drag & Drop
gbCodeLib - Drag & Drop
There are two versions of drag and drop supported by gbCodeLib. One for moving snippets within the Tree and second for dragging the entire content of text files into gbCodeLib.

File Drag and Drop
Files may be dragged and dropped onto the source code editor. By default the contents of the file will be added to the source code editor at the point of the cursor.

However, if the Menu > General > Drop to Category option is selected, the file content will be added as a new snippet within category of the currently selected snippet.

Multiple files can be dragged and dropped in a single operation. Contents of all dropped files are placed in the same snippet - either the currently selected snippet (by default) or in a new snippet if the 'Drop to Category' option is selected.

By default files with extensions .txt, .htm, .bat, .bas, .frm, .pl, .h, .cpp, and .java are recognized as text files which can be dragged and dropped into gbCodeLib. The default file list is kept in the file 'gbcodelibext.txt', found in the gbCodeLib installation folder. Files of other extensions will be ignored.

Tree Drag and Drop
A snippet may be moved to a new category by simply dragging and dropping it on top of the target category. The target category can be within any language in the snippet database.

The Tree does not support selection of multiple snippets so Drag and Drop is limited to a single snippet at a time. Drag and drop of entire categories is also not supported.