Changing the object in the control

In the painter, you can change or remove the object in the control.

StepsTo delete the object in the control:

  1. Select Delete from the control’s pop-up menu.

    The control is now empty and cannot be activated. Do not select Clear—it deletes the control from the window.

StepsTo insert a different object in the control:

  1. Select Insert from the control’s pop-up menu.

    PowerBuilder displays the Insert Object dialog box.

  2. Select Create New and select a server application, or select Create from File and specify a file, as you did when you defined the control.

  3. Click OK.

During execution

You can insert a different object in the control by calling the InsertObject, InsertFile, InsertClass, or LinkTo function. You can delete the object in the control by calling Cut or Clear.