Cutting, Copying, Pasting, and Duplicating Controls

How to:

If you want to place a control on a form that is very similar to an existing control, instead of generating a new control, you can use the Cut, Copy, Paste, and Duplicate commands.

When you copy and paste a control, you can perform either a deep copy or a shallow copy:


Top of page

x
Procedure: How to Cut a Control
  1. Select the control.
  2. In the Edit menu, click Cut.

    or

    Press Ctrl+X.

    or

    Click the Cut button Cut button on the General toolbar.

    or

    Right-click the control, and in the shortcut menu, click Cut.

WebFOCUS Maintain removes the control from the form and places it on the Clipboard, ready to paste into this or another form.


Top of page

x
Procedure: How to Copy a Control
  1. Select the control.
  2. In the Edit menu, click Copy.

    or

    Press Ctrl+C.

    or

    Click the Copy button Copy button on the General toolbar.

    or

    Right-click the control, and in the shortcut menu, click Copy.

WebFOCUS Maintain places the control on the Clipboard, ready to paste into this or another form.


Top of page

x
Procedure: How to Paste a Control

Before you paste a control into a form, you must have cut or copied it to the Clipboard.

If you want to perform a deep copy (includes appearance, data bindings, event handlers, and connections to resources):

  1. Open the form where you want to paste the control.
  2. In the Edit menu, click Paste.

    or

    Press Ctrl+V.

    or

    Click the Paste button Paste button on the General toolbar.

    or

    Right-click the form, and in the shortcut menu, click Paste.

WebFOCUS Maintain places the control in the form at its previous location or, slightly offset from its previous location. It also attempts to do the deepest possible copy, but a full copy may not be possible. For example, you cannot perform a deep copy from a form in one procedure to a form in another procedure.

If you want to perform a shallow copy (appearance only):

  1. Open the form where you want to paste the control.
  2. In the Edit menu, click Paste appearance.

    or

    Right-click the form, and in the shortcut menu, click Paste appearance.


Top of page

x
Procedure: How to Duplicate a Control
  1. Select the control.
  2. In the Edit or Form menu, click Duplicate.

    or

    Right-click the control and in the context menu, click Duplicate.

WebFOCUS Maintain creates a deep copy of the control (including appearance, data bindings, events, and connections to resources) in the same form, slightly offset from the original control.

Tip: You can also hold down the Ctrl key and drag the control to duplicate it.


WebFOCUS