Copy and Paste (XForms (Forms Library) - Version 1.2 (Rev. 4) A Graphical User Interface Toolkit for X)

Next: Groups, Previous: Object Specific Attributes, Up: Part II Creating Forms [Contents][Index]

### 10.10 Cut, Copy and Paste

You can remove objects from the form by first selecting them and then pressing the `<F12>` function key or simply by double-clicking on it with the right mouse button. The object(s) will disappear but in fact will be saved in a buffer. You can put it back into the form (or in another form) by pasting, using `<F10>`. Note that only the last collection of deleted objects is saved in the buffer.

It is also possible to put a copy of the selection (i.e., without removing the original object(s)) into the buffer using `<F9>`. The content of the bufer can now be put into the same or another form. This allows for a simple mechanism of making multiple copies of a set of objects and for moving information from one form to another.

To clone the currently selected object, hold down the `<Shift>` key and then drag the selected object to a new position. The cloned object will have exactly the same attributes as the original object except for its name and shortcut keys (would these also be cloned, the generated code would not be compilable or cause runtime misbehavior).

When you copy objects belonging to a common group just the individual objects of the group will be copied, but they won’t belong to a common group anymore.