Copying controls

You can copy controls within a window or to other windows. All properties of the control, as well as all of its scripts, are copied. You can use this technique to make a copy of an existing control and change what you want in the copy.

StepsTo copy a control:

  1. Select the control.

  2. Select Edit>Copy from the menu bar or press Ctrl+C.

    The control is copied to a private PowerBuilder clipboard.

  3. Do one of the following:

  4. If prompted, change the name of the pasted control to be unique.

    PowerBuilder pastes the control in the destination window at the same location as in the source window. If you are pasting into the same window, move the pasted control so it does not overlay the original control. You can make whatever changes you want to the copy; the source control will be unaffected.