How to: |
If you want to place a control on a form that is very similar to an existing control, instead of regenerating the control from scratch 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:
You perform deep copies with the Paste and Duplicate commands.
You perform shallow copies with the Paste appearance command.
or
Press Ctrl+X.
or
Click the 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.
or
Press Ctrl+C.
or
Click the 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.
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):
or
Press Ctrl+V.
or
Click the 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):
or
Right-click the form, and in the shortcut menu, click Paste appearance.
or
Right-click the control and in the context menu, click Duplicate.
WebFOCUS Maintain creates a deep copy of the control (includes 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 |