Screem User Manual
Prev | Chapter 6. Features | Next

# 6.8. Drag and Drop

Extensive Drag and Drop support is available in Screem The main area which supports this the text editor itself. The following areas support drag and drop:

- The editor

- The Site file list

- The document structure view

- All the standard Gnome widgets that feature DnD, such as entry widgets.

## 6.8.1. Editor DnD

The action taken when dropping items onto the editor depends on whether the draw was performed with the left mouse button, or the middle mouse button. Left button drops will insert text into the editor, the text itself will depend on what the drop was.

### 6.8.1.1. File Drop

Dropping a file onto the editor with a left button drag/drop will insert that filename at the position it is dropped at. The filename will be converted to a relative path if it is within the site being edited.

Dropping a file onto the editor with a middle button drag/drop will present a menu allowing you to select the action to be taken.

### 6.8.1.2. URI Drop

Dropping a URI onto the editor will insert that URI into the editor as text, drops from Netscape are supported, however drops from Mozilla are not currently supported.

### 6.8.1.3. Colour Drop

Dropping a colour onto the editor with a left button drag/drop will insert that colour code in quotes, eg:

    #ffa500

Although there are no applications that currently support middle button drag/drop of colours, if one does occur on the editor you will be presented with a popup menu of what action to take.

## 6.8.2. Site File List DnD (and Browse File List)

The site file list will behave in the expected manner, drag/drops copy/move files/directories around. A normal left button drag/drop will attempt to move the dragged/dropped item. A middle button drop will give you the option.

## 6.8.3. Document Structure DnD

The document structure view drag/drop support allows you to move sections of SGML/XML documents around by dragging the elements. As always a middle button drop presents a menu inquiring what action should be performed with the drop.

Prev | Home | Next
CVS | Up | User definable tag list