Inserting controls in a window
You insert controls in a window in the Window painter.
To insert a control in a window:
-
Select Insert>Control from the menu bar, or display the
Controls drop-down toolbar on the PainterBar. -
Select the control you want to insert.
-
If you select User Object, the Select Object dialog box
displays listing all user objects defined for the application.
Select the library and the user object and click OK. -
In the Layout view, click where you want the control.
After you insert the control, you can size it, move it, define
its appearance and behavior, and create scripts for its
events.
Duplicating controls
To place multiple controls of the same type in a window, place a
control in the window and make sure it is selected. Then press Ctrl+T or
select Duplicate from the pop-up menu once for each duplicate control
you want to place in the window. The controls are placed one under
another. You can drag them to other locations if you want.
Inserting controls with undefined
content
When you insert a DataWindow, Picture, PictureButton, or
PictureHyperLink control in a window, you are inserting only the
control. You see only an empty box for a DataWindow control, the dotted
outline of a box for Picture and PictureHyperLink controls, and a large
button resembling a CommandButton for a PictureButton control. You must
specify a DataWindow object or picture later.
Dragging and dropping DataWindow objects
You can insert a DataWindow control with a predefined DataWindow
object in a window by dragging the DataWindow object from the System
Tree to the window’s Layout view.
Placing OLE controls
You can place objects from applications that support OLE, such as
Excel worksheets and Visio drawings, in your windows. For information
about using OLE with PowerBuilder, see Using OLE in an Application in Application Techniques.