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 dropdown toolbar on the PainterBar.
-
Select the control you want to insert.
If you select a user object control, 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 popup 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 DataWindow controls, Pictures, PictureButtons,
and PictureHyperLinks
When you insert a DataWindow control, a picture, a PictureButton,
or a PictureHyperLink in a window, you are inserting a control in
the window. No DataWindow object or picture has yet been specified
for the control.
| If the control is a | You see | For more information |
|---|---|---|
| DataWindow control | An empty box to indicate no DataWindow object has been specified |
Chapter 14, “Defining DataWindow Objects “ |
| Picture | The dotted outline of a box to indicate no picture has been specified |
“Using pictures” |
| PictureButton | A large button (resembling a CommandButton) with space at the top to indicate no picture has been specified |
“Using PictureButtons” |
| PictureHyperLink | The dotted outline of a box to indicate no picture has been specified |
“Using PictureHyperLinks” |
Placing OLE controls
On Windows, 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 Application Techniques
.